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

Go to the source code of this file.

Data Structures

struct  bflb_kys_config_s
 

Macros

#define KEYSCAN_INT_EN_DONE   (0x1 << 7)
 
#define KEYSCAN_INT_EN_FIFOFULL   (0x1 << 8)
 
#define KEYSCAN_INT_EN_FIFOHALF   (0x1 << 9)
 
#define KEYSCAN_INT_EN_FIFOQUARTER   (0x1 << 10)
 
#define KEYSCAN_INT_EN_FIFO_NONEMPTY   (0x1 << 11)
 
#define KEYSCAN_INT_EN_GHOST   (0x1 << 12)
 

Functions

void bflb_kys_init (struct bflb_device_s *dev, const struct bflb_kys_config_s *config)
 
void bflb_kys_enable (struct bflb_device_s *dev)
 
void bflb_kys_disable (struct bflb_device_s *dev)
 
void bflb_kys_int_enable (struct bflb_device_s *dev, uint32_t flag, bool enable)
 
void bflb_kys_int_clear (struct bflb_device_s *dev, uint32_t flag)
 
uint32_t bflb_kys_get_int_status (struct bflb_device_s *dev)
 
uint8_t bflb_kys_read_keyvalue (struct bflb_device_s *dev, uint8_t index)
 

Macro Definition Documentation

◆ KEYSCAN_INT_EN_DONE

#define KEYSCAN_INT_EN_DONE   (0x1 << 7)

Definition at line 19 of file bflb_kys.h.

◆ KEYSCAN_INT_EN_FIFO_NONEMPTY

#define KEYSCAN_INT_EN_FIFO_NONEMPTY   (0x1 << 11)

Definition at line 23 of file bflb_kys.h.

◆ KEYSCAN_INT_EN_FIFOFULL

#define KEYSCAN_INT_EN_FIFOFULL   (0x1 << 8)

Definition at line 20 of file bflb_kys.h.

◆ KEYSCAN_INT_EN_FIFOHALF

#define KEYSCAN_INT_EN_FIFOHALF   (0x1 << 9)

Definition at line 21 of file bflb_kys.h.

◆ KEYSCAN_INT_EN_FIFOQUARTER

#define KEYSCAN_INT_EN_FIFOQUARTER   (0x1 << 10)

Definition at line 22 of file bflb_kys.h.

◆ KEYSCAN_INT_EN_GHOST

#define KEYSCAN_INT_EN_GHOST   (0x1 << 12)

Definition at line 24 of file bflb_kys.h.

Function Documentation

◆ bflb_kys_disable()

void bflb_kys_disable ( struct bflb_device_s dev)

◆ bflb_kys_enable()

void bflb_kys_enable ( struct bflb_device_s dev)

◆ bflb_kys_get_int_status()

uint32_t bflb_kys_get_int_status ( struct bflb_device_s dev)

◆ bflb_kys_init()

void bflb_kys_init ( struct bflb_device_s dev,
const struct bflb_kys_config_s config 
)

◆ bflb_kys_int_clear()

void bflb_kys_int_clear ( struct bflb_device_s dev,
uint32_t  flag 
)

◆ bflb_kys_int_enable()

void bflb_kys_int_enable ( struct bflb_device_s dev,
uint32_t  flag,
bool  enable 
)

◆ bflb_kys_read_keyvalue()

uint8_t bflb_kys_read_keyvalue ( struct bflb_device_s dev,
uint8_t  index 
)