![]() |
LibDriver GT24CXX
|
gt24cxx base driver modules More...
Data Structures | |
| struct | gt24cxx_handle_s |
| gt24cxx handle structure definition More... | |
| struct | gt24cxx_info_s |
| gt24cxx information structure definition More... | |
Typedefs | |
| typedef struct gt24cxx_handle_s | gt24cxx_handle_t |
| gt24cxx handle structure definition | |
| typedef struct gt24cxx_info_s | gt24cxx_info_t |
| gt24cxx information structure definition | |
Enumerations | |
| enum | gt24cxx_t { GT24C02 = 256 , GT24C04 = 512 , GT24C08 = 1024 , GT24C16 = 2048 , GT24C32 = 4096 , GT24C64 = 8192 , GT24C128 = 16384 , GT24C256 = 32768 , GT24C512 = 65536 , GT24C1024 = 131072 , GT24C2048 = 262144 } |
| gt24cxx type enumeration definition More... | |
| enum | gt24cxx_address_t { GT24CXX_ADDRESS_A000 = 0 , GT24CXX_ADDRESS_A001 = 1 , GT24CXX_ADDRESS_A010 = 2 , GT24CXX_ADDRESS_A011 = 3 , GT24CXX_ADDRESS_A100 = 4 , GT24CXX_ADDRESS_A101 = 5 , GT24CXX_ADDRESS_A110 = 6 , GT24CXX_ADDRESS_A111 = 7 } |
| gt24cxx address enumeration definition More... | |
Functions | |
| uint8_t | gt24cxx_info (gt24cxx_info_t *info) |
| get chip's information | |
| uint8_t | gt24cxx_init (gt24cxx_handle_t *handle) |
| initialize the chip | |
| uint8_t | gt24cxx_deinit (gt24cxx_handle_t *handle) |
| close the chip | |
| uint8_t | gt24cxx_set_type (gt24cxx_handle_t *handle, gt24cxx_t type) |
| set the chip type | |
| uint8_t | gt24cxx_get_type (gt24cxx_handle_t *handle, gt24cxx_t *type) |
| get the chip type | |
| uint8_t | gt24cxx_set_addr_pin (gt24cxx_handle_t *handle, gt24cxx_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | gt24cxx_get_addr_pin (gt24cxx_handle_t *handle, gt24cxx_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | gt24cxx_read (gt24cxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len) |
| read bytes from the chip | |
| uint8_t | gt24cxx_write (gt24cxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len) |
| write bytes to the chip | |
gt24cxx base driver modules
| typedef struct gt24cxx_handle_s gt24cxx_handle_t |
gt24cxx handle structure definition
| typedef struct gt24cxx_info_s gt24cxx_info_t |
gt24cxx information structure definition
| enum gt24cxx_address_t |
gt24cxx address enumeration definition
Definition at line 80 of file driver_gt24cxx.h.
| enum gt24cxx_t |
gt24cxx type enumeration definition
Definition at line 62 of file driver_gt24cxx.h.
| uint8_t gt24cxx_deinit | ( | gt24cxx_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a gt24cxx handle structure |
Definition at line 135 of file driver_gt24cxx.c.
| uint8_t gt24cxx_get_addr_pin | ( | gt24cxx_handle_t * | handle, |
| gt24cxx_address_t * | addr_pin ) |
get the chip address pin
| [in] | *handle | pointer to a gt24cxx handle structure |
| [out] | *addr_pin | pointer to a chip address pin |
Definition at line 230 of file driver_gt24cxx.c.
| uint8_t gt24cxx_get_type | ( | gt24cxx_handle_t * | handle, |
| gt24cxx_t * | type ) |
get the chip type
| [in] | *handle | pointer to a gt24cxx handle structure |
| [out] | *type | pointer to a chip type buffer |
Definition at line 187 of file driver_gt24cxx.c.
| uint8_t gt24cxx_info | ( | gt24cxx_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a gt24cxx info structure |
Definition at line 503 of file driver_gt24cxx.c.
| uint8_t gt24cxx_init | ( | gt24cxx_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a gt24cxx handle structure |
Definition at line 61 of file driver_gt24cxx.c.
| uint8_t gt24cxx_read | ( | gt24cxx_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
read bytes from the chip
| [in] | *handle | pointer to a gt24cxx handle structure |
| [in] | address | register address |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 256 of file driver_gt24cxx.c.
| uint8_t gt24cxx_set_addr_pin | ( | gt24cxx_handle_t * | handle, |
| gt24cxx_address_t | addr_pin ) |
set the chip address pin
| [in] | *handle | pointer to a gt24cxx handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 208 of file driver_gt24cxx.c.
| uint8_t gt24cxx_set_type | ( | gt24cxx_handle_t * | handle, |
| gt24cxx_t | type ) |
set the chip type
| [in] | *handle | pointer to a gt24cxx handle structure |
| [in] | type | chip type |
Definition at line 166 of file driver_gt24cxx.c.
| uint8_t gt24cxx_write | ( | gt24cxx_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
write bytes to the chip
| [in] | *handle | pointer to a gt24cxx handle structure |
| [in] | address | register address |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 312 of file driver_gt24cxx.c.