Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Data Structures | |
struct | bflb_wo_cfg_s |
WO configuration structure. More... | |
Macros | |
#define | WO_INT_END (1 << 0) |
#define | WO_INT_FIFO (1 << 1) |
#define | WO_INT_FER (1 << 2) |
Functions | |
void | bflb_wo_pin_init (struct bflb_device_s *dev, uint8_t pin, uint8_t mode) |
Initialize wo pin. More... | |
void | bflb_wo_init (struct bflb_device_s *dev, struct bflb_wo_cfg_s *cfg) |
Initialize wo. More... | |
void | bflb_wo_enable (struct bflb_device_s *dev) |
Enable wo. More... | |
void | bflb_wo_disable (struct bflb_device_s *dev) |
Disable wo. More... | |
uint32_t | bflb_wo_get_fifo_available_cnt (struct bflb_device_s *dev) |
Get the count of available space in fifo. More... | |
uint32_t | bflb_wo_push_fifo (struct bflb_device_s *dev, uint16_t *data, uint32_t len) |
Put len count of data on wo. More... | |
void | bflb_wo_clear_fifo (struct bflb_device_s *dev) |
Clear wo fifo. More... | |
void | bflb_wo_enable_dma (struct bflb_device_s *dev) |
Enable wo dma. More... | |
void | bflb_wo_disable_dma (struct bflb_device_s *dev) |
Disable wo dma. More... | |
uint32_t | bflb_wo_get_int_status (struct bflb_device_s *dev) |
Get wo interrupt status. More... | |
void | bflb_wo_int_mask (struct bflb_device_s *dev, uint32_t int_type) |
Disable or mask wo interrupt. More... | |
void | bflb_wo_int_unmask (struct bflb_device_s *dev, uint32_t int_type) |
Enable or unmask wo interrupt. More... | |
void | bflb_wo_int_clear (struct bflb_device_s *dev, uint32_t int_type) |
Clear wo interrupt status. More... | |
void | bflb_wo_uart_init (struct bflb_device_s *dev, uint32_t baudrate, uint8_t pin) |
Initialize wo uart. More... | |
void | bflb_wo_uart_putchar (struct bflb_device_s *dev, uint8_t ch) |
Put one char on wo uart. More... | |
void | bflb_wo_uart_put (struct bflb_device_s *dev, uint8_t *data, uint32_t len) |
Put a block of data on wo uart. This is a poll api. More... | |
Variables | |
uint16_t | code_total_cnt |
uint8_t | code0_first_cnt |
uint8_t | code1_first_cnt |
uint8_t | code0_first_level |
uint8_t | code1_first_level |
uint8_t | idle_level |
uint8_t | fifo_threshold |
uint8_t | mode |
#define WO_INT_END (1 << 0) |
#define WO_INT_FER (1 << 2) |
#define WO_INT_FIFO (1 << 1) |
void bflb_wo_clear_fifo | ( | struct bflb_device_s * | dev | ) |
Clear wo fifo.
[in] | dev | device handle |
void bflb_wo_disable | ( | struct bflb_device_s * | dev | ) |
Disable wo.
[in] | dev | device handle |
void bflb_wo_disable_dma | ( | struct bflb_device_s * | dev | ) |
Disable wo dma.
[in] | dev | device handle |
void bflb_wo_enable | ( | struct bflb_device_s * | dev | ) |
Enable wo.
[in] | dev | device handle |
void bflb_wo_enable_dma | ( | struct bflb_device_s * | dev | ) |
Enable wo dma.
[in] | dev | device handle |
uint32_t bflb_wo_get_fifo_available_cnt | ( | struct bflb_device_s * | dev | ) |
Get the count of available space in fifo.
[in] | dev | device handle |
uint32_t bflb_wo_get_int_status | ( | struct bflb_device_s * | dev | ) |
Get wo interrupt status.
[in] | dev | device handle |
void bflb_wo_init | ( | struct bflb_device_s * | dev, |
struct bflb_wo_cfg_s * | cfg | ||
) |
Initialize wo.
[in] | dev | device handle |
[in] | cfg | pointer to save wo config |
void bflb_wo_int_clear | ( | struct bflb_device_s * | dev, |
uint32_t | int_type | ||
) |
Clear wo interrupt status.
[in] | dev | device handle |
[in] | int_type | clear value, use wo interrupt definition |
void bflb_wo_int_mask | ( | struct bflb_device_s * | dev, |
uint32_t | int_type | ||
) |
Disable or mask wo interrupt.
[in] | dev | device handle |
[in] | int_type | mask value, use wo interrupt definition |
void bflb_wo_int_unmask | ( | struct bflb_device_s * | dev, |
uint32_t | int_type | ||
) |
Enable or unmask wo interrupt.
[in] | dev | device handle |
[in] | int_type | unmask value, use wo interrupt definition |
void bflb_wo_pin_init | ( | struct bflb_device_s * | dev, |
uint8_t | pin, | ||
uint8_t | mode | ||
) |
Initialize wo pin.
[in] | dev | device handle |
[in] | pin | assert this pin to wo |
[in] | mode | use wo mode definition |
uint32_t bflb_wo_push_fifo | ( | struct bflb_device_s * | dev, |
uint16_t * | data, | ||
uint32_t | len | ||
) |
Put len count of data on wo.
[in] | dev | device handle |
[in] | data | pointer to save send data |
[in] | len | length to send |
void bflb_wo_uart_init | ( | struct bflb_device_s * | dev, |
uint32_t | baudrate, | ||
uint8_t | pin | ||
) |
Initialize wo uart.
[in] | dev | device handle |
[in] | baudrate | baudrate of uart |
[in] | pin | pin assert to uart_tx |
void bflb_wo_uart_put | ( | struct bflb_device_s * | dev, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
Put a block of data on wo uart. This is a poll api.
[in] | dev | device handle |
[in] | data | pointer to save send data |
[in] | len | length to send |
void bflb_wo_uart_putchar | ( | struct bflb_device_s * | dev, |
uint8_t | ch | ||
) |
Put one char on wo uart.
[in] | dev | device handle |
[in] | ch | char |