![]() |
LibDriver TTP229
|
ttp229 basic driver modules More...
Data Structures | |
| struct | ttp229_handle_s |
| ttp229 handle structure definition More... | |
| struct | ttp229_info_s |
| ttp229 information structure definition More... | |
Typedefs | |
| typedef struct ttp229_handle_s | ttp229_handle_t |
| ttp229 handle structure definition | |
| typedef struct ttp229_info_s | ttp229_info_t |
| ttp229 information structure definition | |
Enumerations | |
| enum | ttp229_interface_t { TTP229_INTERFACE_IIC = 0x00 , TTP229_INTERFACE_SPI = 0x01 } |
| ttp229 interface enumeration definition More... | |
| enum | ttp229_active_t { TTP229_ACTIVE_LOW = 0x00 , TTP229_ACTIVE_HIGH = 0x01 } |
| ttp229 active enumeration definition More... | |
Functions | |
| uint8_t | ttp229_info (ttp229_info_t *info) |
| get chip's information | |
| uint8_t | ttp229_set_interface (ttp229_handle_t *handle, ttp229_interface_t interface) |
| set the interface | |
| uint8_t | ttp229_get_interface (ttp229_handle_t *handle, ttp229_interface_t *interface) |
| get the interface | |
| uint8_t | ttp229_init (ttp229_handle_t *handle) |
| initialize the chip | |
| uint8_t | ttp229_deinit (ttp229_handle_t *handle) |
| close the chip | |
| uint8_t | ttp229_set_active (ttp229_handle_t *handle, ttp229_active_t active_level) |
| set the active level | |
| uint8_t | ttp229_get_active (ttp229_handle_t *handle, ttp229_active_t *active_level) |
| get the active level | |
| uint8_t | ttp229_read_16_keys (ttp229_handle_t *handle, uint8_t keys[16]) |
| read 16 keys | |
| uint8_t | ttp229_read_8_keys (ttp229_handle_t *handle, uint8_t keys[8]) |
| read 8 keys | |
ttp229 basic driver modules
| typedef struct ttp229_handle_s ttp229_handle_t |
ttp229 handle structure definition
| typedef struct ttp229_info_s ttp229_info_t |
ttp229 information structure definition
| enum ttp229_active_t |
ttp229 active enumeration definition
| Enumerator | |
|---|---|
| TTP229_ACTIVE_LOW | active low |
| TTP229_ACTIVE_HIGH | active high |
Definition at line 71 of file driver_ttp229.h.
| enum ttp229_interface_t |
ttp229 interface enumeration definition
| Enumerator | |
|---|---|
| TTP229_INTERFACE_IIC | iic interface |
| TTP229_INTERFACE_SPI | spi interface |
Definition at line 62 of file driver_ttp229.h.
| uint8_t ttp229_deinit | ( | ttp229_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a ttp229 handle structure |
Definition at line 279 of file driver_ttp229.c.
| uint8_t ttp229_get_active | ( | ttp229_handle_t * | handle, |
| ttp229_active_t * | active_level ) |
get the active level
| [in] | *handle | pointer to a ttp229 handle structure |
| [out] | *active_level | pointer to an active level buffer |
Definition at line 166 of file driver_ttp229.c.
| uint8_t ttp229_get_interface | ( | ttp229_handle_t * | handle, |
| ttp229_interface_t * | interface ) |
get the interface
| [in] | *handle | pointer to a ttp229 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 118 of file driver_ttp229.c.
| uint8_t ttp229_info | ( | ttp229_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a ttp229 info structure |
Definition at line 433 of file driver_ttp229.c.
| uint8_t ttp229_init | ( | ttp229_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a ttp229 handle structure |
Definition at line 192 of file driver_ttp229.c.
| uint8_t ttp229_read_16_keys | ( | ttp229_handle_t * | handle, |
| uint8_t | keys[16] ) |
read 16 keys
| [in] | *handle | pointer to a ttp229 handle structure |
| [out] | *keys | pointer to a key buffer |
Definition at line 324 of file driver_ttp229.c.
| uint8_t ttp229_read_8_keys | ( | ttp229_handle_t * | handle, |
| uint8_t | keys[8] ) |
read 8 keys
| [in] | *handle | pointer to a ttp229 handle structure |
| [out] | *keys | pointer to a key buffer |
Definition at line 367 of file driver_ttp229.c.
| uint8_t ttp229_set_active | ( | ttp229_handle_t * | handle, |
| ttp229_active_t | active_level ) |
set the active level
| [in] | *handle | pointer to a ttp229 handle structure |
| [in] | active_level | set active level |
Definition at line 140 of file driver_ttp229.c.
| uint8_t ttp229_set_interface | ( | ttp229_handle_t * | handle, |
| ttp229_interface_t | interface ) |
set the interface
| [in] | *handle | pointer to a ttp229 handle structure |
| [in] | interface | chip interface |
Definition at line 97 of file driver_ttp229.c.