Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
#include "bflb_core.h"
Go to the source code of this file.
Functions | |
void | bflb_gpio_init (struct bflb_device_s *dev, uint8_t pin, uint32_t cfgset) |
Initialize gpio pin. More... | |
void | bflb_gpio_deinit (struct bflb_device_s *dev, uint8_t pin) |
Deinitialize gpio pin with input float. More... | |
void | bflb_gpio_set (struct bflb_device_s *dev, uint8_t pin) |
Write gpio pin with high level. More... | |
void | bflb_gpio_reset (struct bflb_device_s *dev, uint8_t pin) |
Write gpio pin with low level. More... | |
bool | bflb_gpio_read (struct bflb_device_s *dev, uint8_t pin) |
Read level from gpio pin. More... | |
void | bflb_gpio_pin0_31_write (struct bflb_device_s *dev, uint32_t val) |
Write gpio pin 0~31. More... | |
void | bflb_gpio_pin32_63_write (struct bflb_device_s *dev, uint32_t val) |
Write gpio pin 32~63. More... | |
uint32_t | bflb_gpio_pin0_31_read (struct bflb_device_s *dev) |
Read level from gpio pin 0~31. More... | |
uint32_t | bflb_gpio_pin32_63_read (struct bflb_device_s *dev) |
Read level from gpio pin 32~63. More... | |
void | bflb_gpio_int_init (struct bflb_device_s *dev, uint8_t pin, uint8_t trig_mode) |
Config gpio pin interrupt. More... | |
void | bflb_gpio_int_mask (struct bflb_device_s *dev, uint8_t pin, bool mask) |
Enable or disable gpio pin interrupt. More... | |
bool | bflb_gpio_get_intstatus (struct bflb_device_s *dev, uint8_t pin) |
Get gpio pin interrupt status. More... | |
void | bflb_gpio_int_clear (struct bflb_device_s *dev, uint8_t pin) |
Clear gpio pin interrupt status. More... | |
void | bflb_gpio_uart_init (struct bflb_device_s *dev, uint8_t pin, uint8_t uart_func) |
Config gpio pin with uart function. More... | |
int | bflb_gpio_feature_control (struct bflb_device_s *dev, int cmd, size_t arg) |
Control gpio feature. More... | |