All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_audio_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
430 #ifndef LE_AUDIO_H_INCLUDE_GUARD
431 #define LE_AUDIO_H_INCLUDE_GUARD
432 
433 
434 #include "legato.h"
435 
436 //--------------------------------------------------------------------------------------------------
440 //--------------------------------------------------------------------------------------------------
442 (
443  const char* serviceInstanceName
445 );
446 
447 //--------------------------------------------------------------------------------------------------
451 //--------------------------------------------------------------------------------------------------
453 (
454  void
455 );
456 
457 
458 //--------------------------------------------------------------------------------------------------
462 //--------------------------------------------------------------------------------------------------
463 typedef enum
464 {
467 
470 
473 
476 
479 }
481 
482 
483 //--------------------------------------------------------------------------------------------------
487 //--------------------------------------------------------------------------------------------------
488 typedef struct le_audio_Stream* le_audio_StreamRef_t;
489 
490 
491 //--------------------------------------------------------------------------------------------------
495 //--------------------------------------------------------------------------------------------------
496 typedef struct le_audio_Connector* le_audio_ConnectorRef_t;
497 
498 //--------------------------------------------------------------------------------------------------
504 //--------------------------------------------------------------------------------------------------
506 (
507  void
508 );
509 
510 //--------------------------------------------------------------------------------------------------
516 //--------------------------------------------------------------------------------------------------
518 (
519  void
520 );
521 
522 //--------------------------------------------------------------------------------------------------
528 //--------------------------------------------------------------------------------------------------
530 (
531  void
532 );
533 
534 //--------------------------------------------------------------------------------------------------
540 //--------------------------------------------------------------------------------------------------
542 (
543  void
544 );
545 
546 //--------------------------------------------------------------------------------------------------
552 //--------------------------------------------------------------------------------------------------
554 (
555  uint32_t timeslot
558 );
559 
560 //--------------------------------------------------------------------------------------------------
566 //--------------------------------------------------------------------------------------------------
568 (
569  uint32_t timeslot
572 );
573 
574 //--------------------------------------------------------------------------------------------------
580 //--------------------------------------------------------------------------------------------------
582 (
586 );
587 
588 //--------------------------------------------------------------------------------------------------
594 //--------------------------------------------------------------------------------------------------
596 (
600 );
601 
602 //--------------------------------------------------------------------------------------------------
608 //--------------------------------------------------------------------------------------------------
610 (
611  int fd
614 );
615 
616 //--------------------------------------------------------------------------------------------------
622 //--------------------------------------------------------------------------------------------------
624 (
625  int fd
628 );
629 
630 //--------------------------------------------------------------------------------------------------
636 //--------------------------------------------------------------------------------------------------
638 (
639  void
640 );
641 
642 //--------------------------------------------------------------------------------------------------
648 //--------------------------------------------------------------------------------------------------
650 (
651  void
652 );
653 
654 //--------------------------------------------------------------------------------------------------
665 //--------------------------------------------------------------------------------------------------
667 (
668  le_audio_StreamRef_t streamRef,
671 
672  char* formatPtr,
676 
677  size_t formatPtrNumElements
679 );
680 
681 //--------------------------------------------------------------------------------------------------
690 //--------------------------------------------------------------------------------------------------
691 void le_audio_Close
692 (
693  le_audio_StreamRef_t streamRef
696 );
697 
698 //--------------------------------------------------------------------------------------------------
713 //--------------------------------------------------------------------------------------------------
715 (
716  le_audio_StreamRef_t streamRef,
719 
720  uint32_t gain
724 );
725 
726 //--------------------------------------------------------------------------------------------------
740 //--------------------------------------------------------------------------------------------------
742 (
743  le_audio_StreamRef_t streamRef,
746 
747  uint32_t* gainPtr
751 );
752 
753 //--------------------------------------------------------------------------------------------------
764 //--------------------------------------------------------------------------------------------------
766 (
767  le_audio_StreamRef_t streamRef
770 );
771 
772 //--------------------------------------------------------------------------------------------------
783 //--------------------------------------------------------------------------------------------------
785 (
786  le_audio_StreamRef_t streamRef
789 );
790 
791 //--------------------------------------------------------------------------------------------------
797 //--------------------------------------------------------------------------------------------------
799 (
800  void
801 );
802 
803 //--------------------------------------------------------------------------------------------------
810 //--------------------------------------------------------------------------------------------------
812 (
813  le_audio_ConnectorRef_t connectorRef
816 );
817 
818 //--------------------------------------------------------------------------------------------------
830 //--------------------------------------------------------------------------------------------------
832 (
833  le_audio_ConnectorRef_t connectorRef,
836 
837  le_audio_StreamRef_t streamRef
840 );
841 
842 //--------------------------------------------------------------------------------------------------
849 //--------------------------------------------------------------------------------------------------
851 (
852  le_audio_ConnectorRef_t connectorRef,
855 
856  le_audio_StreamRef_t streamRef
859 );
860 
861 
862 #endif // LE_AUDIO_H_INCLUDE_GUARD
863 
le_result_t
Definition: le_basics.h:34
le_audio_StreamRef_t le_audio_OpenModemVoiceTx(void)
le_audio_StreamRef_t le_audio_OpenI2sTx(le_audio_I2SChannel_t mode)
le_audio_StreamRef_t le_audio_OpenI2sRx(le_audio_I2SChannel_t mode)
struct le_audio_Stream * le_audio_StreamRef_t
Definition: le_audio_interface.h:488
le_audio_StreamRef_t le_audio_OpenUsbTx(void)
le_audio_StreamRef_t le_audio_OpenFilePlayback(int fd)
Reverse mode (left & right reversed).
Definition: le_audio_interface.h:477
le_result_t le_audio_Connect(le_audio_ConnectorRef_t connectorRef, le_audio_StreamRef_t streamRef)
le_result_t le_audio_Unmute(le_audio_StreamRef_t streamRef)
le_audio_StreamRef_t le_audio_OpenSpeaker(void)
struct le_audio_Connector * le_audio_ConnectorRef_t
Definition: le_audio_interface.h:496
le_audio_ConnectorRef_t le_audio_CreateConnector(void)
le_audio_StreamRef_t le_audio_OpenPcmTx(uint32_t timeslot)
le_audio_StreamRef_t le_audio_OpenModemVoiceRx(void)
void le_audio_Close(le_audio_StreamRef_t streamRef)
le_audio_StreamRef_t le_audio_OpenPcmRx(uint32_t timeslot)
le_audio_I2SChannel_t
Definition: le_audio_interface.h:463
le_audio_StreamRef_t le_audio_OpenFileRecording(int fd)
Mono mode.
Definition: le_audio_interface.h:471
le_audio_StreamRef_t le_audio_OpenUsbRx(void)
Stereo mode.
Definition: le_audio_interface.h:474
Right channel.
Definition: le_audio_interface.h:468
le_result_t le_audio_SetGain(le_audio_StreamRef_t streamRef, uint32_t gain)
void le_audio_StopClient(void)
Left channel.
Definition: le_audio_interface.h:465
le_result_t le_audio_GetFormat(le_audio_StreamRef_t streamRef, char *formatPtr, size_t formatPtrNumElements)
void le_audio_StartClient(const char *serviceInstanceName)
void le_audio_Disconnect(le_audio_ConnectorRef_t connectorRef, le_audio_StreamRef_t streamRef)
void le_audio_DeleteConnector(le_audio_ConnectorRef_t connectorRef)
le_result_t le_audio_GetGain(le_audio_StreamRef_t streamRef, uint32_t *gainPtr)
le_audio_StreamRef_t le_audio_OpenMic(void)
le_result_t le_audio_Mute(le_audio_StreamRef_t streamRef)