![]() |
LibDriver MULTI_BUTTON
|
multi_button basic driver modules More...
Data Structures | |
| struct | multi_button_s |
| multi_button structure definition More... | |
| struct | multi_button_time_s |
| multi_button time structure definition More... | |
| struct | multi_button_decode_s |
| multi_button decode structure definition More... | |
| struct | multi_button_single_s |
| multi_button single structure definition More... | |
| struct | multi_button_handle_s |
| multi_button handle structure definition More... | |
| struct | multi_button_info_s |
| multi_button information structure definition More... | |
Macros | |
| #define | MULTI_BUTTON_NUMBER 128 |
| multi_button max number definition | |
| #define | MULTI_BUTTON_EACH_LENGTH 16 |
| multi_button each length definition | |
Typedefs | |
| typedef struct multi_button_s | multi_button_t |
| multi_button structure definition | |
| typedef struct multi_button_time_s | multi_button_time_t |
| multi_button time structure definition | |
| typedef struct multi_button_decode_s | multi_button_decode_t |
| multi_button decode structure definition | |
| typedef struct multi_button_single_s | multi_button_single_t |
| multi_button single structure definition | |
| typedef struct multi_button_handle_s | multi_button_handle_t |
| multi_button handle structure definition | |
| typedef struct multi_button_info_s | multi_button_info_t |
| multi_button information structure definition | |
Enumerations | |
| enum | multi_button_status_t { MULTI_BUTTON_STATUS_PRESS = (1 << 0) , MULTI_BUTTON_STATUS_RELEASE = (1 << 1) , MULTI_BUTTON_STATUS_SINGLE_CLICK = (1 << 2) , MULTI_BUTTON_STATUS_DOUBLE_CLICK = (1 << 3) , MULTI_BUTTON_STATUS_TRIPLE_CLICK = (1 << 4) , MULTI_BUTTON_STATUS_REPEAT_CLICK = (1 << 5) , MULTI_BUTTON_STATUS_SHORT_PRESS_START = (1 << 6) , MULTI_BUTTON_STATUS_SHORT_PRESS_END = (1 << 7) , MULTI_BUTTON_STATUS_LONG_PRESS_START = (1 << 8) , MULTI_BUTTON_STATUS_LONG_PRESS_HOLD = (1 << 9) , MULTI_BUTTON_STATUS_LONG_PRESS_END = (1 << 10) } |
| check range More... | |
Functions | |
| uint8_t | multi_button_info (multi_button_info_t *info) |
| get chip's information | |
| uint8_t | multi_button_init (multi_button_handle_t *handle, uint8_t row, uint8_t col) |
| initialize the chip | |
| uint8_t | multi_button_deinit (multi_button_handle_t *handle) |
| close the chip | |
| uint8_t | multi_button_process (multi_button_handle_t *handle) |
| process | |
| uint8_t | multi_button_set_timeout (multi_button_handle_t *handle, uint32_t us) |
| set timeout | |
| uint8_t | multi_button_get_timeout (multi_button_handle_t *handle, uint32_t *us) |
| get timeout | |
| uint8_t | multi_button_set_interval (multi_button_handle_t *handle, uint32_t us) |
| set interval | |
| uint8_t | multi_button_get_interval (multi_button_handle_t *handle, uint32_t *us) |
| get interval | |
| uint8_t | multi_button_set_short_time (multi_button_handle_t *handle, uint32_t us) |
| set short time | |
| uint8_t | multi_button_get_short_time (multi_button_handle_t *handle, uint32_t *us) |
| get short time | |
| uint8_t | multi_button_set_long_time (multi_button_handle_t *handle, uint32_t us) |
| set long time | |
| uint8_t | multi_button_get_long_time (multi_button_handle_t *handle, uint32_t *us) |
| get long time | |
| uint8_t | multi_button_set_repeat_time (multi_button_handle_t *handle, uint32_t us) |
| set repeat time | |
| uint8_t | multi_button_get_repeat_time (multi_button_handle_t *handle, uint32_t *us) |
| get repeat time | |
| uint8_t | multi_button_set_repeat_cnt (multi_button_handle_t *handle, uint32_t cnt) |
| set repeat cnt | |
| uint8_t | multi_button_get_repeat_cnt (multi_button_handle_t *handle, uint32_t *cnt) |
| get repeat cnt | |
| uint8_t | multi_button_set_period (multi_button_handle_t *handle, uint32_t period) |
| set period | |
| uint8_t | multi_button_get_period (multi_button_handle_t *handle, uint32_t *period) |
| get period | |
multi_button basic driver modules
| #define MULTI_BUTTON_EACH_LENGTH 16 |
| #define MULTI_BUTTON_NUMBER 128 |
multi_button max number definition
max 128 number
Definition at line 63 of file driver_multi_button.h.
| typedef struct multi_button_decode_s multi_button_decode_t |
multi_button decode structure definition
| typedef struct multi_button_handle_s multi_button_handle_t |
multi_button handle structure definition
| typedef struct multi_button_info_s multi_button_info_t |
multi_button information structure definition
| typedef struct multi_button_single_s multi_button_single_t |
multi_button single structure definition
| typedef struct multi_button_s multi_button_t |
multi_button structure definition
| typedef struct multi_button_time_s multi_button_time_t |
multi_button time structure definition
check range
multi_button status enumeration definition
Definition at line 83 of file driver_multi_button.h.
| uint8_t multi_button_deinit | ( | multi_button_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a multi_button handle structure |
Definition at line 756 of file driver_multi_button.c.
| uint8_t multi_button_get_interval | ( | multi_button_handle_t * | handle, |
| uint32_t * | us ) |
get interval
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *us | pointer to a time buffer |
Definition at line 869 of file driver_multi_button.c.
| uint8_t multi_button_get_long_time | ( | multi_button_handle_t * | handle, |
| uint32_t * | us ) |
get long time
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *us | pointer to a time buffer |
Definition at line 973 of file driver_multi_button.c.
| uint8_t multi_button_get_period | ( | multi_button_handle_t * | handle, |
| uint32_t * | period ) |
get period
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *period | pointer to a period buffer |
Definition at line 1129 of file driver_multi_button.c.
| uint8_t multi_button_get_repeat_cnt | ( | multi_button_handle_t * | handle, |
| uint32_t * | cnt ) |
get repeat cnt
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *cnt | pointer to a counter buffer |
Definition at line 1077 of file driver_multi_button.c.
| uint8_t multi_button_get_repeat_time | ( | multi_button_handle_t * | handle, |
| uint32_t * | us ) |
get repeat time
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *us | pointer to a time buffer |
Definition at line 1025 of file driver_multi_button.c.
| uint8_t multi_button_get_short_time | ( | multi_button_handle_t * | handle, |
| uint32_t * | us ) |
get short time
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *us | pointer to a time buffer |
Definition at line 921 of file driver_multi_button.c.
| uint8_t multi_button_get_timeout | ( | multi_button_handle_t * | handle, |
| uint32_t * | us ) |
get timeout
| [in] | *handle | pointer to a multi_button handle structure |
| [out] | *us | pointer to a time buffer |
Definition at line 817 of file driver_multi_button.c.
| uint8_t multi_button_info | ( | multi_button_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a multi_button info structure |
Definition at line 1153 of file driver_multi_button.c.
| uint8_t multi_button_init | ( | multi_button_handle_t * | handle, |
| uint8_t | row, | ||
| uint8_t | col ) |
initialize the chip
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | row | max row of buttons |
| [in] | col | max col of buttons |
Definition at line 618 of file driver_multi_button.c.
| uint8_t multi_button_process | ( | multi_button_handle_t * | handle | ) |
process
| [in] | *handle | pointer to a multi_button handle structure |
Definition at line 546 of file driver_multi_button.c.
| uint8_t multi_button_set_interval | ( | multi_button_handle_t * | handle, |
| uint32_t | us ) |
set interval
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | us | set time |
Definition at line 843 of file driver_multi_button.c.
| uint8_t multi_button_set_long_time | ( | multi_button_handle_t * | handle, |
| uint32_t | us ) |
set long time
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | us | set time |
Definition at line 947 of file driver_multi_button.c.
| uint8_t multi_button_set_period | ( | multi_button_handle_t * | handle, |
| uint32_t | period ) |
set period
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | period | set period |
Definition at line 1103 of file driver_multi_button.c.
| uint8_t multi_button_set_repeat_cnt | ( | multi_button_handle_t * | handle, |
| uint32_t | cnt ) |
set repeat cnt
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | cnt | set repeat counter |
Definition at line 1051 of file driver_multi_button.c.
| uint8_t multi_button_set_repeat_time | ( | multi_button_handle_t * | handle, |
| uint32_t | us ) |
set repeat time
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | us | set time |
Definition at line 999 of file driver_multi_button.c.
| uint8_t multi_button_set_short_time | ( | multi_button_handle_t * | handle, |
| uint32_t | us ) |
set short time
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | us | set time |
Definition at line 895 of file driver_multi_button.c.
| uint8_t multi_button_set_timeout | ( | multi_button_handle_t * | handle, |
| uint32_t | us ) |
set timeout
| [in] | *handle | pointer to a multi_button handle structure |
| [in] | us | set time |
Definition at line 791 of file driver_multi_button.c.