|
Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
|
Data Structures | |
| struct | bflb_ir_tx_config_s |
| IR TX configuration structure. More... | |
| struct | bflb_ir_rx_config_s |
| IR RX configuration structure. More... | |
Functions | |
| void | bflb_ir_tx_init (struct bflb_device_s *dev, const struct bflb_ir_tx_config_s *config) |
| Initialize ir tx. More... | |
| void | bflb_ir_send (struct bflb_device_s *dev, uint32_t *data, uint32_t length) |
| Send data in NEC/RC5/customize mode. More... | |
| void | bflb_ir_swm_send (struct bflb_device_s *dev, uint16_t *data, uint8_t length) |
| Send data in software mode. More... | |
| void | bflb_ir_tx_enable (struct bflb_device_s *dev, bool enable) |
| Enable or disable ir tx. More... | |
| void | bflb_ir_txint_mask (struct bflb_device_s *dev, uint8_t int_type, bool mask) |
| Mask or unmask ir tx interrupt. More... | |
| uint32_t | bflb_ir_get_txint_status (struct bflb_device_s *dev) |
| Get ir tx interrupt status. More... | |
| void | bflb_ir_txint_clear (struct bflb_device_s *dev) |
| Clear ir tx interrupt. More... | |
| void | bflb_ir_link_txdma (struct bflb_device_s *dev, bool enable) |
| Enable or disable ir tx dma mode. More... | |
| uint8_t | bflb_ir_get_txfifo_cnt (struct bflb_device_s *dev) |
| Get ir tx fifo available count. More... | |
| void | bflb_ir_txfifo_clear (struct bflb_device_s *dev) |
| Clear ir tx fifo. More... | |
| void | bflb_ir_rx_init (struct bflb_device_s *dev, const struct bflb_ir_rx_config_s *config) |
| Initialize ir rx. More... | |
| uint8_t | bflb_ir_receive (struct bflb_device_s *dev, uint64_t *data) |
| Receive data in NEC/RC5/customize mode. More... | |
| uint8_t | bflb_ir_swm_receive (struct bflb_device_s *dev, uint16_t *data, uint8_t length) |
| Receive data in software mode. More... | |
| void | bflb_ir_rx_enable (struct bflb_device_s *dev, bool enable) |
| Enable or disable ir rx. More... | |
| uint8_t | bflb_ir_get_rxfifo_cnt (struct bflb_device_s *dev) |
| Get ir rx fifo available count. More... | |
| void | bflb_ir_rxfifo_clear (struct bflb_device_s *dev) |
| Clear ir rx fifo. More... | |
| void | bflb_ir_rxint_mask (struct bflb_device_s *dev, uint8_t int_type, bool mask) |
| Mask ir rx interrupt. More... | |
| uint32_t | bflb_ir_get_rxint_status (struct bflb_device_s *dev) |
| Get ir rx interrupt status. More... | |
| void | bflb_ir_rxint_clear (struct bflb_device_s *dev) |
| Clear ir rx interrupt. More... | |
| int | bflb_ir_feature_control (struct bflb_device_s *dev, int cmd, size_t arg) |
| Control ir feature. More... | |
| int bflb_ir_feature_control | ( | struct bflb_device_s * | dev, |
| int | cmd, | ||
| size_t | arg | ||
| ) |
Control ir feature.
| [in] | dev | device handle |
| [in] | cmd | feature command |
| [in] | arg | user data |
| uint8_t bflb_ir_get_rxfifo_cnt | ( | struct bflb_device_s * | dev | ) |
Get ir rx fifo available count.
| [in] | dev | device handle |
| uint32_t bflb_ir_get_rxint_status | ( | struct bflb_device_s * | dev | ) |
Get ir rx interrupt status.
| [in] | dev | device handle |
| uint8_t bflb_ir_get_txfifo_cnt | ( | struct bflb_device_s * | dev | ) |
Get ir tx fifo available count.
| [in] | dev | device handle |
| uint32_t bflb_ir_get_txint_status | ( | struct bflb_device_s * | dev | ) |
Get ir tx interrupt status.
| [in] | dev | device handle |
| void bflb_ir_link_txdma | ( | struct bflb_device_s * | dev, |
| bool | enable | ||
| ) |
Enable or disable ir tx dma mode.
| [in] | dev | device handle |
| [in] | enable | enable or disable |
| uint8_t bflb_ir_receive | ( | struct bflb_device_s * | dev, |
| uint64_t * | data | ||
| ) |
Receive data in NEC/RC5/customize mode.
| [in] | dev | device handle |
| [out] | data | data received |
| void bflb_ir_rx_enable | ( | struct bflb_device_s * | dev, |
| bool | enable | ||
| ) |
Enable or disable ir rx.
| [in] | dev | device handle |
| [in] | enable | enable or disable |
| void bflb_ir_rx_init | ( | struct bflb_device_s * | dev, |
| const struct bflb_ir_rx_config_s * | config | ||
| ) |
Initialize ir rx.
| [in] | dev | device handle |
| [in] | config | config pointer to ir rx configure structure |
| void bflb_ir_rxfifo_clear | ( | struct bflb_device_s * | dev | ) |
Clear ir rx fifo.
| [in] | dev | device handle |
| void bflb_ir_rxint_clear | ( | struct bflb_device_s * | dev | ) |
Clear ir rx interrupt.
| [in] | dev | device handle |
| void bflb_ir_rxint_mask | ( | struct bflb_device_s * | dev, |
| uint8_t | int_type, | ||
| bool | mask | ||
| ) |
Mask ir rx interrupt.
| [in] | dev | device handle |
| [in] | int_type | ir rx interrupt type, use ir rx interrupt enable definition |
| [in] | mask | mask or unmask |
| void bflb_ir_send | ( | struct bflb_device_s * | dev, |
| uint32_t * | data, | ||
| uint32_t | length | ||
| ) |
Send data in NEC/RC5/customize mode.
| [in] | dev | device handle |
| [in] | data | data buffer to send |
| [in] | length | length of data buffer |
| uint8_t bflb_ir_swm_receive | ( | struct bflb_device_s * | dev, |
| uint16_t * | data, | ||
| uint8_t | length | ||
| ) |
Receive data in software mode.
| [in] | dev | device handle |
| [out] | data | data buffer to receive |
| [in] | length | of data buffer |
| void bflb_ir_swm_send | ( | struct bflb_device_s * | dev, |
| uint16_t * | data, | ||
| uint8_t | length | ||
| ) |
Send data in software mode.
| [in] | dev | device handle |
| [in] | data | data data buffer to send |
| [in] | length | length of data buffer |
| void bflb_ir_tx_enable | ( | struct bflb_device_s * | dev, |
| bool | enable | ||
| ) |
Enable or disable ir tx.
| [in] | dev | device handle |
| [in] | enable | enable or disable |
| void bflb_ir_tx_init | ( | struct bflb_device_s * | dev, |
| const struct bflb_ir_tx_config_s * | config | ||
| ) |
Initialize ir tx.
| [in] | dev | device handle |
| [in] | config | pointer to ir tx configure structure |
| void bflb_ir_txfifo_clear | ( | struct bflb_device_s * | dev | ) |
Clear ir tx fifo.
| [in] | dev | device handle |
| void bflb_ir_txint_clear | ( | struct bflb_device_s * | dev | ) |
Clear ir tx interrupt.
| [in] | dev | device handle |
| void bflb_ir_txint_mask | ( | struct bflb_device_s * | dev, |
| uint8_t | int_type, | ||
| bool | mask | ||
| ) |
Mask or unmask ir tx interrupt.
| [in] | dev | device handle |
| [in] | int_type | ir tx interrupt type, use ir tx interrupt enable definition |
| [in] | mask | mask or unmask |