Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_wo.h File Reference
#include "bflb_core.h"
Include dependency graph for bflb_wo.h:

Go to the source code of this file.

Data Structures

struct  bflb_wo_cfg_s
 WO configuration structure. More...
 

Macros

#define WO_MODE_WRITE   0
 
#define WO_MODE_SET_CLR   1
 
#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...