![]() |
LibDriver MB85RCXX
|
mb85rcxx base driver modules More...
Data Structures | |
| struct | mb85rcxx_handle_s |
| mb85rcxx handle structure definition More... | |
| struct | mb85rcxx_info_s |
| mb85rcxx information structure definition More... | |
Typedefs | |
| typedef struct mb85rcxx_handle_s | mb85rcxx_handle_t |
| mb85rcxx handle structure definition | |
| typedef struct mb85rcxx_info_s | mb85rcxx_info_t |
| mb85rcxx information structure definition | |
Enumerations | |
| enum | mb85rcxx_t { MB85RC04 = 512 , MB85RC16 = 2048 , MB85RC64 = 8192 , MB85RC128 = 16384 , MB85RC256 = 32768 , MB85RC512 = 65536 , MB85RC1M = 131072 } |
| mb85rcxx type enumeration definition More... | |
| enum | mb85rcxx_address_t { MB85RCXX_ADDRESS_A000 = 0 , MB85RCXX_ADDRESS_A001 = 1 , MB85RCXX_ADDRESS_A010 = 2 , MB85RCXX_ADDRESS_A011 = 3 , MB85RCXX_ADDRESS_A100 = 4 , MB85RCXX_ADDRESS_A101 = 5 , MB85RCXX_ADDRESS_A110 = 6 , MB85RCXX_ADDRESS_A111 = 7 } |
| mb85rcxx address enumeration definition More... | |
Functions | |
| uint8_t | mb85rcxx_info (mb85rcxx_info_t *info) |
| get chip's information | |
| uint8_t | mb85rcxx_init (mb85rcxx_handle_t *handle) |
| initialize the chip | |
| uint8_t | mb85rcxx_deinit (mb85rcxx_handle_t *handle) |
| close the chip | |
| uint8_t | mb85rcxx_set_type (mb85rcxx_handle_t *handle, mb85rcxx_t type) |
| set the chip type | |
| uint8_t | mb85rcxx_get_type (mb85rcxx_handle_t *handle, mb85rcxx_t *type) |
| get the chip type | |
| uint8_t | mb85rcxx_set_addr_pin (mb85rcxx_handle_t *handle, mb85rcxx_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | mb85rcxx_get_addr_pin (mb85rcxx_handle_t *handle, mb85rcxx_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | mb85rcxx_read (mb85rcxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len) |
| read bytes from the chip | |
| uint8_t | mb85rcxx_write (mb85rcxx_handle_t *handle, uint32_t address, uint8_t *buf, uint16_t len) |
| write bytes to the chip | |
mb85rcxx base driver modules
| typedef struct mb85rcxx_handle_s mb85rcxx_handle_t |
mb85rcxx handle structure definition
| typedef struct mb85rcxx_info_s mb85rcxx_info_t |
mb85rcxx information structure definition
| enum mb85rcxx_address_t |
mb85rcxx address enumeration definition
Definition at line 76 of file driver_mb85rcxx.h.
| enum mb85rcxx_t |
mb85rcxx type enumeration definition
| Enumerator | |
|---|---|
| MB85RC04 | MB85RC04 type |
| MB85RC16 | MB85RC16 type |
| MB85RC64 | MB85RC64 type |
| MB85RC128 | MB85RC128 type |
| MB85RC256 | MB85RC256 type |
| MB85RC512 | MB85RC512 type |
| MB85RC1M | MB85RC1M type |
Definition at line 62 of file driver_mb85rcxx.h.
| uint8_t mb85rcxx_deinit | ( | mb85rcxx_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a mb85rcxx handle structure |
Definition at line 135 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_get_addr_pin | ( | mb85rcxx_handle_t * | handle, |
| mb85rcxx_address_t * | addr_pin ) |
get the chip address pin
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [out] | *addr_pin | pointer to a chip address pin |
Definition at line 230 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_get_type | ( | mb85rcxx_handle_t * | handle, |
| mb85rcxx_t * | type ) |
get the chip type
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [out] | *type | pointer to a chip type buffer |
Definition at line 187 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_info | ( | mb85rcxx_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a mb85rcxx info structure |
Definition at line 460 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_init | ( | mb85rcxx_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a mb85rcxx handle structure |
Definition at line 61 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_read | ( | mb85rcxx_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
read bytes from the chip
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [in] | address | register address |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 256 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_set_addr_pin | ( | mb85rcxx_handle_t * | handle, |
| mb85rcxx_address_t | addr_pin ) |
set the chip address pin
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 208 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_set_type | ( | mb85rcxx_handle_t * | handle, |
| mb85rcxx_t | type ) |
set the chip type
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [in] | type | chip type |
Definition at line 166 of file driver_mb85rcxx.c.
| uint8_t mb85rcxx_write | ( | mb85rcxx_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
write bytes to the chip
| [in] | *handle | pointer to a mb85rcxx handle structure |
| [in] | address | register address |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 361 of file driver_mb85rcxx.c.