![]() |
LibDriver W25QXX
1.0.0
W25QXX full function driver
|
w25qxx advance driver modules More...
Functions | |
| uint8_t | w25qxx_fast_read_dual_output (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| read with dual output in the fast mode More... | |
| uint8_t | w25qxx_fast_read_quad_output (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| read with quad output in the fast mode More... | |
| uint8_t | w25qxx_fast_read_dual_io (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| read with dual io in the fast mode More... | |
| uint8_t | w25qxx_fast_read_quad_io (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| read with quad io in the fast mode More... | |
| uint8_t | w25qxx_word_read_quad_io (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| word read with quad io More... | |
| uint8_t | w25qxx_octal_word_read_quad_io (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint32_t len) |
| octal word read with quad io More... | |
| uint8_t | w25qxx_page_program_quad_input (w25qxx_handle_t *handle, uint32_t addr, uint8_t *data, uint16_t len) |
| quad page program with quad input More... | |
| uint8_t | w25qxx_enable_write (w25qxx_handle_t *handle) |
| enable writing More... | |
| uint8_t | w25qxx_enable_volatile_sr_write (w25qxx_handle_t *handle) |
| enable volatile sr writing More... | |
| uint8_t | w25qxx_disable_write (w25qxx_handle_t *handle) |
| disable writing More... | |
| uint8_t | w25qxx_get_status1 (w25qxx_handle_t *handle, uint8_t *status) |
| get the status 1 More... | |
| uint8_t | w25qxx_get_status2 (w25qxx_handle_t *handle, uint8_t *status) |
| get the status 2 More... | |
| uint8_t | w25qxx_get_status3 (w25qxx_handle_t *handle, uint8_t *status) |
| get the status 3 More... | |
| uint8_t | w25qxx_set_status1 (w25qxx_handle_t *handle, uint8_t status) |
| set the status 1 More... | |
| uint8_t | w25qxx_set_status2 (w25qxx_handle_t *handle, uint8_t status) |
| set the status 2 More... | |
| uint8_t | w25qxx_set_status3 (w25qxx_handle_t *handle, uint8_t status) |
| set the status 3 More... | |
| uint8_t | w25qxx_erase_program_suspend (w25qxx_handle_t *handle) |
| suspend erase or program More... | |
| uint8_t | w25qxx_erase_program_resume (w25qxx_handle_t *handle) |
| resume erase or program More... | |
| uint8_t | w25qxx_get_manufacturer_device_id_dual_io (w25qxx_handle_t *handle, uint8_t *manufacturer, uint8_t *device_id) |
| get the manufacturer && device id information with dual io More... | |
| uint8_t | w25qxx_get_manufacturer_device_id_quad_io (w25qxx_handle_t *handle, uint8_t *manufacturer, uint8_t *device_id) |
| get the manufacturer && device id information with quad io More... | |
| uint8_t | w25qxx_get_jedec_id (w25qxx_handle_t *handle, uint8_t *manufacturer, uint8_t device_id[2]) |
| get the jedec id information More... | |
| uint8_t | w25qxx_global_block_lock (w25qxx_handle_t *handle) |
| lock the whole block More... | |
| uint8_t | w25qxx_global_block_unlock (w25qxx_handle_t *handle) |
| unlock the whole block More... | |
| uint8_t | w25qxx_set_read_parameters (w25qxx_handle_t *handle, w25qxx_qspi_read_dummy_t dummy, w25qxx_qspi_read_wrap_length_t length) |
| set the read parameters More... | |
| uint8_t | w25qxx_enter_qspi_mode (w25qxx_handle_t *handle) |
| enter the qspi mode More... | |
| uint8_t | w25qxx_exit_qspi_mode (w25qxx_handle_t *handle) |
| exit the qspi mode More... | |
| uint8_t | w25qxx_enable_reset (w25qxx_handle_t *handle) |
| enable the reset More... | |
| uint8_t | w25qxx_reset_device (w25qxx_handle_t *handle) |
| reset the device More... | |
| uint8_t | w25qxx_get_unique_id (w25qxx_handle_t *handle, uint8_t id[8]) |
| get the unique id More... | |
| uint8_t | w25qxx_get_sfdp (w25qxx_handle_t *handle, uint8_t sfdp[256]) |
| get the sfdp More... | |
| uint8_t | w25qxx_erase_security_register (w25qxx_handle_t *handle, w25qxx_security_register_t num) |
| erase the security register More... | |
| uint8_t | w25qxx_program_security_register (w25qxx_handle_t *handle, w25qxx_security_register_t num, uint8_t data[256]) |
| program the security register More... | |
| uint8_t | w25qxx_read_security_register (w25qxx_handle_t *handle, w25qxx_security_register_t num, uint8_t data[256]) |
| read the security register More... | |
| uint8_t | w25qxx_individual_block_lock (w25qxx_handle_t *handle, uint32_t addr) |
| lock the individual block More... | |
| uint8_t | w25qxx_individual_block_unlock (w25qxx_handle_t *handle, uint32_t addr) |
| unlock the individual block More... | |
| uint8_t | w25qxx_read_block_lock (w25qxx_handle_t *handle, uint32_t addr, uint8_t *value) |
| read the block lock More... | |
| uint8_t | w25qxx_set_burst_with_wrap (w25qxx_handle_t *handle, w25qxx_burst_wrap_t wrap) |
| set the burst with wrap More... | |
w25qxx advance driver modules
| enum w25qxx_burst_wrap_t |
w25qxx burst wrap enumeration definition
Definition at line 144 of file driver_w25qxx.h.
w25qxx qspi read dummy enumeration definition
Definition at line 111 of file driver_w25qxx.h.
w25qxx qspi read wrap length enumeration definition
Definition at line 122 of file driver_w25qxx.h.
w25qxx security register enumeration definition
| Enumerator | |
|---|---|
| W25QXX_SECURITY_REGISTER_1 | security register 1 |
| W25QXX_SECURITY_REGISTER_2 | security register 2 |
| W25QXX_SECURITY_REGISTER_3 | security register 3 |
Definition at line 134 of file driver_w25qxx.h.
| enum w25qxx_status1_t |
w25qxx status 1 enumeration definition
Definition at line 156 of file driver_w25qxx.h.
| enum w25qxx_status2_t |
w25qxx status 2 enumeration definition
Definition at line 171 of file driver_w25qxx.h.
| enum w25qxx_status3_t |
w25qxx status 3 enumeration definition
Definition at line 185 of file driver_w25qxx.h.
| uint8_t w25qxx_disable_write | ( | w25qxx_handle_t * | handle | ) |
disable writing
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 572 of file driver_w25qxx.c.
| uint8_t w25qxx_enable_reset | ( | w25qxx_handle_t * | handle | ) |
enable the reset
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2619 of file driver_w25qxx.c.
| uint8_t w25qxx_enable_volatile_sr_write | ( | w25qxx_handle_t * | handle | ) |
enable volatile sr writing
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 501 of file driver_w25qxx.c.
| uint8_t w25qxx_enable_write | ( | w25qxx_handle_t * | handle | ) |
enable writing
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 431 of file driver_w25qxx.c.
| uint8_t w25qxx_enter_qspi_mode | ( | w25qxx_handle_t * | handle | ) |
enter the qspi mode
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2494 of file driver_w25qxx.c.
| uint8_t w25qxx_erase_program_resume | ( | w25qxx_handle_t * | handle | ) |
resume erase or program
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 1722 of file driver_w25qxx.c.
| uint8_t w25qxx_erase_program_suspend | ( | w25qxx_handle_t * | handle | ) |
suspend erase or program
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 1650 of file driver_w25qxx.c.
| uint8_t w25qxx_erase_security_register | ( | w25qxx_handle_t * | handle, |
| w25qxx_security_register_t | num | ||
| ) |
erase the security register
| [in] | *handle | points to a w25qxx handle structure |
| [in] | num | is the security register number |
Definition at line 2952 of file driver_w25qxx.c.
| uint8_t w25qxx_exit_qspi_mode | ( | w25qxx_handle_t * | handle | ) |
exit the qspi mode
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2572 of file driver_w25qxx.c.
| uint8_t w25qxx_fast_read_dual_io | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
read with dual io in the fast mode
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 4076 of file driver_w25qxx.c.
| uint8_t w25qxx_fast_read_dual_output | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
read with dual output in the fast mode
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 3858 of file driver_w25qxx.c.
| uint8_t w25qxx_fast_read_quad_io | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
read with quad io in the fast mode
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 4184 of file driver_w25qxx.c.
| uint8_t w25qxx_fast_read_quad_output | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
read with quad output in the fast mode
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 3967 of file driver_w25qxx.c.
| uint8_t w25qxx_get_jedec_id | ( | w25qxx_handle_t * | handle, |
| uint8_t * | manufacturer, | ||
| uint8_t | device_id[2] | ||
| ) |
get the jedec id information
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *manufacturer | points to a manufacturer buffer |
| [out] | *device_id | points to a device id buffer |
Definition at line 2203 of file driver_w25qxx.c.
| uint8_t w25qxx_get_manufacturer_device_id_dual_io | ( | w25qxx_handle_t * | handle, |
| uint8_t * | manufacturer, | ||
| uint8_t * | device_id | ||
| ) |
get the manufacturer && device id information with dual io
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *manufacturer | points to a manufacturer buffer |
| [out] | *device_id | points to a device id buffer |
Definition at line 2038 of file driver_w25qxx.c.
| uint8_t w25qxx_get_manufacturer_device_id_quad_io | ( | w25qxx_handle_t * | handle, |
| uint8_t * | manufacturer, | ||
| uint8_t * | device_id | ||
| ) |
get the manufacturer && device id information with quad io
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *manufacturer | points to a manufacturer buffer |
| [out] | *device_id | points to a device id buffer |
Definition at line 2122 of file driver_w25qxx.c.
| uint8_t w25qxx_get_sfdp | ( | w25qxx_handle_t * | handle, |
| uint8_t | sfdp[256] | ||
| ) |
get the sfdp
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *sfdp | points to an sfdp buffer |
Definition at line 2880 of file driver_w25qxx.c.
| uint8_t w25qxx_get_status1 | ( | w25qxx_handle_t * | handle, |
| uint8_t * | status | ||
| ) |
get the status 1
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *status | points to a status buffer |
Definition at line 643 of file driver_w25qxx.c.
| uint8_t w25qxx_get_status2 | ( | w25qxx_handle_t * | handle, |
| uint8_t * | status | ||
| ) |
get the status 2
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *status | points to a status buffer |
Definition at line 716 of file driver_w25qxx.c.
| uint8_t w25qxx_get_status3 | ( | w25qxx_handle_t * | handle, |
| uint8_t * | status | ||
| ) |
get the status 3
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *status | points to a status buffer |
Definition at line 789 of file driver_w25qxx.c.
| uint8_t w25qxx_get_unique_id | ( | w25qxx_handle_t * | handle, |
| uint8_t | id[8] | ||
| ) |
get the unique id
| [in] | *handle | points to a w25qxx handle structure |
| [out] | *id | points to an id buffer |
Definition at line 2764 of file driver_w25qxx.c.
| uint8_t w25qxx_global_block_lock | ( | w25qxx_handle_t * | handle | ) |
lock the whole block
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2284 of file driver_w25qxx.c.
| uint8_t w25qxx_global_block_unlock | ( | w25qxx_handle_t * | handle | ) |
unlock the whole block
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2354 of file driver_w25qxx.c.
| uint8_t w25qxx_individual_block_lock | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr | ||
| ) |
lock the individual block
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the block address |
Definition at line 6094 of file driver_w25qxx.c.
| uint8_t w25qxx_individual_block_unlock | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr | ||
| ) |
unlock the individual block
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the block address |
Definition at line 6311 of file driver_w25qxx.c.
| uint8_t w25qxx_octal_word_read_quad_io | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
octal word read with quad io
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 4459 of file driver_w25qxx.c.
| uint8_t w25qxx_page_program_quad_input | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint16_t | len | ||
| ) |
quad page program with quad input
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the programming address |
| [in] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 4920 of file driver_w25qxx.c.
| uint8_t w25qxx_program_security_register | ( | w25qxx_handle_t * | handle, |
| w25qxx_security_register_t | num, | ||
| uint8_t | data[256] | ||
| ) |
program the security register
| [in] | *handle | points to a w25qxx handle structure |
| [in] | num | is the security register number |
| [in] | *data | points to a data buffer |
Definition at line 3147 of file driver_w25qxx.c.
| uint8_t w25qxx_read_block_lock | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | value | ||
| ) |
read the block lock
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the block address |
| [out] | *value | points to a value buffer |
Definition at line 6529 of file driver_w25qxx.c.
| uint8_t w25qxx_read_security_register | ( | w25qxx_handle_t * | handle, |
| w25qxx_security_register_t | num, | ||
| uint8_t | data[256] | ||
| ) |
read the security register
| [in] | *handle | points to a w25qxx handle structure |
| [in] | num | is the security register number |
| [out] | *data | points to a data buffer |
Definition at line 3344 of file driver_w25qxx.c.
| uint8_t w25qxx_reset_device | ( | w25qxx_handle_t * | handle | ) |
reset the device
| [in] | *handle | points to a w25qxx handle structure |
Definition at line 2690 of file driver_w25qxx.c.
| uint8_t w25qxx_set_burst_with_wrap | ( | w25qxx_handle_t * | handle, |
| w25qxx_burst_wrap_t | wrap | ||
| ) |
set the burst with wrap
| [in] | *handle | points to a w25qxx handle structure |
| [in] | wrap | is the burst wrap |
Definition at line 6746 of file driver_w25qxx.c.
| uint8_t w25qxx_set_read_parameters | ( | w25qxx_handle_t * | handle, |
| w25qxx_qspi_read_dummy_t | dummy, | ||
| w25qxx_qspi_read_wrap_length_t | length | ||
| ) |
set the read parameters
| [in] | *handle | points to a w25qxx handle structure |
| [in] | dummy | is the qspi read dummy |
| [in] | length | is the qspi read wrap length |
Definition at line 2427 of file driver_w25qxx.c.
| uint8_t w25qxx_set_status1 | ( | w25qxx_handle_t * | handle, |
| uint8_t | status | ||
| ) |
set the status 1
| [in] | *handle | points to a w25qxx handle structure |
| [in] | status | is the set status |
Definition at line 863 of file driver_w25qxx.c.
| uint8_t w25qxx_set_status2 | ( | w25qxx_handle_t * | handle, |
| uint8_t | status | ||
| ) |
set the status 2
| [in] | *handle | points to a w25qxx handle structure |
| [in] | status | is the set status |
Definition at line 1062 of file driver_w25qxx.c.
| uint8_t w25qxx_set_status3 | ( | w25qxx_handle_t * | handle, |
| uint8_t | status | ||
| ) |
set the status 3
| [in] | *handle | points to a w25qxx handle structure |
| [in] | status | is the set status |
Definition at line 1261 of file driver_w25qxx.c.
| uint8_t w25qxx_word_read_quad_io | ( | w25qxx_handle_t * | handle, |
| uint32_t | addr, | ||
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
word read with quad io
| [in] | *handle | points to a w25qxx handle structure |
| [in] | addr | is the read address |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 4350 of file driver_w25qxx.c.