libctru
v2.4.1
|
IR service. More...
Go to the source code of this file.
Functions | |
Result | iruInit (u32 *sharedmem_addr, u32 sharedmem_size) |
Initializes IRU. More... | |
void | iruExit (void) |
Shuts down IRU. | |
Handle | iruGetServHandle (void) |
Gets the IRU service handle. More... | |
Result | iruSendData (u8 *buf, u32 size, bool wait) |
Sends IR data. More... | |
Result | iruRecvData (u8 *buf, u32 size, u8 flag, u32 *transfercount, bool wait) |
Receives IR data. More... | |
Result | IRU_Initialize (void) |
Initializes the IR session. | |
Result | IRU_Shutdown (void) |
Shuts down the IR session. | |
Result | IRU_StartSendTransfer (u8 *buf, u32 size) |
Begins sending data. More... | |
Result | IRU_WaitSendTransfer (void) |
Waits for a send operation to complete. | |
Result | IRU_StartRecvTransfer (u32 size, u8 flag) |
Begins receiving data. More... | |
Result | IRU_WaitRecvTransfer (u32 *transfercount) |
Waits for a receive operation to complete. More... | |
Result | IRU_SetBitRate (u8 value) |
Sets the IR bit rate. More... | |
Result | IRU_GetBitRate (u8 *out) |
Gets the IR bit rate. More... | |
Result | IRU_SetIRLEDState (u32 value) |
Sets the IR LED state. More... | |
Result | IRU_GetIRLEDRecvState (u32 *out) |
Gets the IR LED state. More... | |
Result | IRU_GetSendFinishedEvent (Handle *out) |
Gets an event which is signaled once a send finishes. More... | |
Result | IRU_GetRecvFinishedEvent (Handle *out) |
Gets an event which is signaled once a receive finishes. More... | |
IR service.
Gets the IR bit rate.
out | Pointer to write the bit rate to. |
Gets the IR LED state.
out | Pointer to write the IR LED state to. |
Gets an event which is signaled once a receive finishes.
out | Pointer to write the event handle to. |
Gets an event which is signaled once a send finishes.
out | Pointer to write the event handle to. |
Begins receiving data.
size | Size of the data to receive. |
flag | Flags to use when receiving. |
Begins sending data.
buf | Buffer to send. |
size | Size of the buffer. |
Waits for a receive operation to complete.
transfercount | Pointer to output the number of bytes read to. |
Handle iruGetServHandle | ( | void | ) |
Gets the IRU service handle.
Initializes IRU.
The permissions for the specified memory is set to RO. This memory must be already mapped.
sharedmem_addr | Address of the shared memory block to use. |
sharedmem_size | Size of the shared memory block. |
Receives IR data.
buf | Buffer to receive data to. |
size | Size of the buffer. |
flag | Flags to receive data with. |
transfercount | Pointer to output the number of bytes read to. |
wait | Whether to wait for the data to be received. |