Receives commands from NEC IR remotes. More...
Receives commands from NEC IR remotes.
Files | |
file | ir_nec.h |
file | ir_nec_constants.h |
Internal addresses, registers and constants. | |
file | ir_nec_params.h |
Default configuration. | |
Data Structures | |
struct | ir_nec_cmd_t |
NEC command structure. More... | |
struct | ir_nec_params_t |
Device initialization parameters. More... | |
struct | ir_nec_t |
Device descriptor for the driver. More... | |
Functions | |
int | ir_nec_init (ir_nec_t *dev, const ir_nec_params_t *params) |
Initialize the given device. | |
int | ir_nec_read (ir_nec_t *dev, ir_nec_cmd_t *command) |
Read a command packet. | |
int ir_nec_init | ( | ir_nec_t * | dev, |
const ir_nec_params_t * | params | ||
) |
Initialize the given device.
[in,out] | dev | Device descriptor of the driver |
[in] | params | Initialization parameters |
int ir_nec_read | ( | ir_nec_t * | dev, |
ir_nec_cmd_t * | command | ||
) |
Read a command packet.
Blocks until one is received
[in,out] | dev | Device descriptor of the driver |
[out] | command | Structure to write the result into |
0 | Success |
-1 | Isrpipe returned too few bytes. Should never happen |