![]() |
AIROC™ BTSDK v4.9 - Documentation | |||
Typedefs | |
| struct { | |
| UINT32 modulateFreq | |
| UINT8 clockSrcFreq | |
| UINT8 clockSrc | |
| BOOL8 invertOutput | |
| UINT8 extendedSettings | |
| UINT8 pwmDutyCycleHighCount | |
| UINT8 pwmDutyCycleLowCount | |
| } | IR_TX_CLOCK_SETTING |
| The 20730/20733 includes an IRTX Hw block. More... | |
| typedef enum IR_TX_STATUS_TAG | IR_TX_STATUS |
| typedef enum IR_TX_STATE_TAG | IR_TX_STATE |
| typedef void(* | Irtx_processTxData_HookFunc )(IR_TX_STATE state) |
Functions | |
| void | wiced_irtx_doneInterruptHandler (void) |
| void | wiced_irtx_doneHandler (void) |
| void | wiced_irtx_updateBufferControl (UINT32 readyUpdate) |
| void | wiced_irtx_configure (IR_TX_CLOCK_SETTING irtxClockSet) |
| void | wiced_irtx_init (void) |
| void | wiced_irtx_processTxData (void) |
| void | wiced_irtx_setIrTxPortPin (BYTE port, BYTE pin) |
| IR_TX_STATUS | wiced_irtx_send_data (const UINT16 *sendBuff, UINT32 pktLen, IR_TX_CLOCK_SETTING irtxClockSet) |
| BOOL8 | wiced_irtx_isAvailable (void) |
| void | wiced_irtx_abortCurrentTransaction (void) |
Variables | |
| Irtx_processTxData_HookFunc | wiced_irtx_processTxData_PreHook |
| Irtx_processTxData_HookFunc | wiced_irtx_processTxData_PostHook |
| Irtx_processTxData_HookFunc | wiced_irtx_processTxData_CompleteHook |
| typedef { ... } IR_TX_CLOCK_SETTING |
The 20730/20733 includes an IRTX Hw block.
The IrTx HW can be used to transmit IR Data. This Class defines an IrTx driver that can be used by applications such as a Remote Controller app or other related applications to transmit IR commands to the Host.
To use the IRTX class:
(1) Get the IrTx class driver instance first.
example: IrTx *irTxDriver = IrTx::getInstance();
(2) Configure the IrTx Port and Pin to be used
example: BYTE port = 0; BYTE pin = 4; irTxDriver->setIrTxPortPin(port, pin);
(3) Transmit an IR Command using the senData function
example: irTxDriver->sendData(testCmdArray , pktLen, irtxClockSet);
Please refer to function description for more details.