17 #define WO_MODE_WRITE 0 18 #define WO_MODE_SET_CLR 1 26 #define WO_INT_END (1 << 0) 27 #define WO_INT_FIFO (1 << 1) 28 #define WO_INT_FER (1 << 2) 42 struct bflb_wo_cfg_s { void bflb_wo_int_clear(struct bflb_device_s *dev, uint32_t int_type)
Clear wo interrupt status.
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.
void bflb_wo_uart_init(struct bflb_device_s *dev, uint32_t baudrate, uint8_t pin)
Initialize wo uart.
WO configuration structure.
uint8_t code0_first_level
void bflb_wo_pin_init(struct bflb_device_s *dev, uint8_t pin, uint8_t mode)
Initialize wo pin.
void bflb_wo_int_unmask(struct bflb_device_s *dev, uint32_t int_type)
Enable or unmask wo interrupt.
uint32_t bflb_wo_get_fifo_available_cnt(struct bflb_device_s *dev)
Get the count of available space in fifo.
void bflb_wo_int_mask(struct bflb_device_s *dev, uint32_t int_type)
Disable or mask wo interrupt.
void bflb_wo_enable(struct bflb_device_s *dev)
Enable wo.
uint32_t bflb_wo_push_fifo(struct bflb_device_s *dev, uint16_t *data, uint32_t len)
Put len count of data on wo.
void bflb_wo_uart_putchar(struct bflb_device_s *dev, uint8_t ch)
Put one char on wo uart.
void bflb_wo_disable_dma(struct bflb_device_s *dev)
Disable wo dma.
uint32_t bflb_wo_get_int_status(struct bflb_device_s *dev)
Get wo interrupt status.
void bflb_wo_enable_dma(struct bflb_device_s *dev)
Enable wo dma.
uint8_t code1_first_level
void bflb_wo_disable(struct bflb_device_s *dev)
Disable wo.
void bflb_wo_init(struct bflb_device_s *dev, struct bflb_wo_cfg_s *cfg)
Initialize wo.
void bflb_wo_clear_fifo(struct bflb_device_s *dev)
Clear wo fifo.