![]() |
LibDriver W25QXX
1.0.0
W25QXX full-featured driver
|
w25qxx example driver modules More...
Functions | |
uint8_t | w25qxx_advance_init (w25qxx_type_t type, w25qxx_interface_t interface, w25qxx_bool_t dual_quad_spi_enable) |
advance example init More... | |
uint8_t | w25qxx_advance_deinit (void) |
advance example deinit More... | |
uint8_t | w25qxx_advance_power_down (void) |
advance example power down More... | |
uint8_t | w25qxx_advance_wake_up (void) |
advance example wake up More... | |
uint8_t | w25qxx_advance_chip_erase (void) |
advance example chip erase More... | |
uint8_t | w25qxx_advance_get_id (uint8_t *manufacturer, uint8_t *device_id) |
advance example get the manufacturer && device id information More... | |
uint8_t | w25qxx_advance_write (uint32_t addr, uint8_t *data, uint32_t len) |
advance example write More... | |
uint8_t | w25qxx_advance_read (uint32_t addr, uint8_t *data, uint32_t len) |
advance example read More... | |
uint8_t | w25qxx_advance_page_program (uint32_t addr, uint8_t *data, uint16_t len) |
advance example page program More... | |
uint8_t | w25qxx_advance_sector_erase_4k (uint32_t addr) |
advance example erase the 4k sector More... | |
uint8_t | w25qxx_advance_block_erase_32k (uint32_t addr) |
advance example erase the 32k block More... | |
uint8_t | w25qxx_advance_block_erase_64k (uint32_t addr) |
advance example erase the 64k block More... | |
uint8_t | w25qxx_advance_fast_read (uint32_t addr, uint8_t *data, uint32_t len) |
advance example read in the fast mode More... | |
uint8_t | w25qxx_advance_get_status1 (uint8_t *status) |
advance example get the status 1 More... | |
uint8_t | w25qxx_advance_get_status2 (uint8_t *status) |
advance example get the status 2 More... | |
uint8_t | w25qxx_advance_get_status3 (uint8_t *status) |
advance example get the status 3 More... | |
uint8_t | w25qxx_advance_set_status1 (uint8_t status) |
advance example set the status 1 More... | |
uint8_t | w25qxx_advance_set_status2 (uint8_t status) |
advance example set the status 2 More... | |
uint8_t | w25qxx_advance_set_status3 (uint8_t status) |
advance example set the status 3 More... | |
uint8_t | w25qxx_advance_get_get_jedec_id (uint8_t *manufacturer, uint8_t device_id[2]) |
advance example get the jedec id information More... | |
uint8_t | w25qxx_advance_global_block_lock (void) |
advance example global block lock More... | |
uint8_t | w25qxx_advance_global_block_unlock (void) |
advance example global block unlock More... | |
uint8_t | w25qxx_advance_individual_block_lock (uint32_t addr) |
advance example lock the individual block More... | |
uint8_t | w25qxx_advance_individual_block_unlock (uint32_t addr) |
advance example unlock the individual block More... | |
uint8_t | w25qxx_advance_read_block_lock (uint32_t addr, uint8_t *value) |
advance example read the block lock More... | |
uint8_t | w25qxx_advance_reset (void) |
advance example reset More... | |
uint8_t | w25qxx_advance_only_spi_read (uint32_t addr, uint8_t *data, uint32_t len) |
advance example read only in the spi interface More... | |
uint8_t | w25qxx_advance_only_spi_fast_read_dual_output (uint32_t addr, uint8_t *data, uint32_t len) |
advance example fast read only in the spi dual output interface More... | |
uint8_t | w25qxx_advance_only_spi_fast_read_quad_output (uint32_t addr, uint8_t *data, uint32_t len) |
advance example fast read only in the spi quad output interface More... | |
uint8_t | w25qxx_advance_only_spi_fast_read_dual_io (uint32_t addr, uint8_t *data, uint32_t len) |
advance example fast read only in the spi dual io interface More... | |
uint8_t | w25qxx_advance_only_spi_fast_read_quad_io (uint32_t addr, uint8_t *data, uint32_t len) |
advance example fast read only in the spi quad io interface More... | |
uint8_t | w25qxx_advance_only_spi_word_read_quad_io (uint32_t addr, uint8_t *data, uint32_t len) |
advance example word read only in the spi quad io interface More... | |
uint8_t | w25qxx_advance_only_spi_octal_word_read_quad_io (uint32_t addr, uint8_t *data, uint32_t len) |
advance example octal word read only in the spi quad io interface More... | |
uint8_t | w25qxx_advance_only_spi_page_program_quad_input (uint32_t addr, uint8_t *data, uint16_t len) |
advance example quad page program only in the spi quad input interface More... | |
uint8_t | w25qxx_advance_only_spi_get_manufacturer_device_id_dual_io (uint8_t *manufacturer, uint8_t *device_id) |
advance example get the manufacturer && device id information only in the spi dual io interface More... | |
uint8_t | w25qxx_advance_only_spi_get_manufacturer_device_id_quad_io (uint8_t *manufacturer, uint8_t *device_id) |
advance example get the manufacturer && device id information only in the spi quad io interface More... | |
uint8_t | w25qxx_advance_only_spi_get_unique_id (uint8_t id[8]) |
advance example get the unique id only in the spi interface More... | |
uint8_t | w25qxx_advance_only_spi_get_sfdp (uint8_t sfdp[256]) |
advance example get the sfdp only in the spi interface More... | |
uint8_t | w25qxx_advance_only_spi_write_security_register (w25qxx_security_register_t num, uint8_t data[256]) |
advance example write the security register only in the spi interface More... | |
uint8_t | w25qxx_advance_only_spi_read_security_register (w25qxx_security_register_t num, uint8_t data[256]) |
advance example read the security register only in the spi interface More... | |
uint8_t | w25qxx_advance_only_spi_set_burst_with_wrap (w25qxx_burst_wrap_t wrap) |
advance example set the burst with wrap only in the spi interface More... | |
uint8_t | w25qxx_advance_only_qspi_set_read_parameters (w25qxx_qspi_read_dummy_t dummy, w25qxx_qspi_read_wrap_length_t length) |
advance example set the read parameters only in the qspi interface More... | |
uint8_t | w25qxx_basic_init (w25qxx_type_t type, w25qxx_interface_t interface, w25qxx_bool_t dual_quad_spi_enable) |
basic example init More... | |
uint8_t | w25qxx_basic_deinit (void) |
basic example deinit More... | |
uint8_t | w25qxx_basic_power_down (void) |
basic example power down More... | |
uint8_t | w25qxx_basic_wake_up (void) |
basic example wake up More... | |
uint8_t | w25qxx_basic_chip_erase (void) |
basic example chip erase More... | |
uint8_t | w25qxx_basic_get_id (uint8_t *manufacturer, uint8_t *device_id) |
basic example get the manufacturer && device id information More... | |
uint8_t | w25qxx_basic_write (uint32_t addr, uint8_t *data, uint32_t len) |
basic example write More... | |
uint8_t | w25qxx_basic_read (uint32_t addr, uint8_t *data, uint32_t len) |
basic example read More... | |
w25qxx example driver modules
uint8_t w25qxx_advance_block_erase_32k | ( | uint32_t | addr | ) |
advance example erase the 32k block
[in] | addr | erase address |
Definition at line 309 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_block_erase_64k | ( | uint32_t | addr | ) |
advance example erase the 64k block
[in] | addr | erase address |
Definition at line 329 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_chip_erase | ( | void | ) |
advance example chip erase
Definition at line 226 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_deinit | ( | void | ) |
advance example deinit
Definition at line 125 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_fast_read | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example read in the fast mode
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 351 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_get_get_jedec_id | ( | uint8_t * | manufacturer, |
uint8_t | device_id[2] | ||
) |
advance example get the jedec id information
[out] | *manufacturer | pointer to a manufacturer buffer |
[out] | *device_id | pointer to a device id buffer |
Definition at line 710 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_get_id | ( | uint8_t * | manufacturer, |
uint8_t * | device_id | ||
) |
advance example get the manufacturer && device id information
[out] | *manufacturer | pointer to a manufacturer buffer |
[out] | *device_id | pointer to a device id buffer |
Definition at line 247 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_get_status1 | ( | uint8_t * | status | ) |
advance example get the status 1
[out] | *status | pointer to a status buffer |
Definition at line 547 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_get_status2 | ( | uint8_t * | status | ) |
advance example get the status 2
[out] | *status | pointer to a status buffer |
Definition at line 567 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_get_status3 | ( | uint8_t * | status | ) |
advance example get the status 3
[out] | *status | pointer to a status buffer |
Definition at line 587 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_global_block_lock | ( | void | ) |
advance example global block lock
Definition at line 729 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_global_block_unlock | ( | void | ) |
advance example global block unlock
Definition at line 748 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_individual_block_lock | ( | uint32_t | addr | ) |
advance example lock the individual block
[in] | addr | block address |
Definition at line 768 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_individual_block_unlock | ( | uint32_t | addr | ) |
advance example unlock the individual block
[in] | addr | block address |
Definition at line 788 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_init | ( | w25qxx_type_t | type, |
w25qxx_interface_t | interface, | ||
w25qxx_bool_t | dual_quad_spi_enable | ||
) |
advance example init
[in] | type | chip type |
[in] | interface | chip interface |
[in] | dual_quad_spi_enable | bool value |
Definition at line 51 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_qspi_set_read_parameters | ( | w25qxx_qspi_read_dummy_t | dummy, |
w25qxx_qspi_read_wrap_length_t | length | ||
) |
advance example set the read parameters only in the qspi interface
[in] | dummy | qspi read dummy |
[in] | length | qspi read wrap length |
Definition at line 853 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_fast_read_dual_io | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example fast read only in the spi dual io interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 439 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_fast_read_dual_output | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example fast read only in the spi dual output interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 395 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_fast_read_quad_io | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example fast read only in the spi quad io interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 461 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_fast_read_quad_output | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example fast read only in the spi quad output interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 417 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_get_manufacturer_device_id_dual_io | ( | uint8_t * | manufacturer, |
uint8_t * | device_id | ||
) |
advance example get the manufacturer && device id information only in the spi dual io interface
[out] | *manufacturer | pointer to a manufacturer buffer |
[out] | *device_id | pointer to a device id buffer |
Definition at line 668 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_get_manufacturer_device_id_quad_io | ( | uint8_t * | manufacturer, |
uint8_t * | device_id | ||
) |
advance example get the manufacturer && device id information only in the spi quad io interface
[out] | *manufacturer | pointer to a manufacturer buffer |
[out] | *device_id | pointer to a device id buffer |
Definition at line 689 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_get_sfdp | ( | uint8_t | sfdp[256] | ) |
advance example get the sfdp only in the spi interface
[out] | *sfdp | pointer to a sfdp buffer |
Definition at line 893 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_get_unique_id | ( | uint8_t | id[8] | ) |
advance example get the unique id only in the spi interface
[out] | *id | pointer to a id buffer |
Definition at line 873 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_octal_word_read_quad_io | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example octal word read only in the spi quad io interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 505 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_page_program_quad_input | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint16_t | len | ||
) |
advance example quad page program only in the spi quad input interface
[in] | addr | programming address |
[in] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 527 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_read | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example read only in the spi interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 373 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_read_security_register | ( | w25qxx_security_register_t | num, |
uint8_t | data[256] | ||
) |
advance example read the security register only in the spi interface
[in] | num | security register number |
[out] | *data | pointer to a data buffer |
Definition at line 939 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_set_burst_with_wrap | ( | w25qxx_burst_wrap_t | wrap | ) |
advance example set the burst with wrap only in the spi interface
[in] | wrap | burst wrap |
Definition at line 959 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_word_read_quad_io | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example word read only in the spi quad io interface
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 483 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_only_spi_write_security_register | ( | w25qxx_security_register_t | num, |
uint8_t | data[256] | ||
) |
advance example write the security register only in the spi interface
[in] | num | security register number |
[in] | *data | pointer to a data buffer |
Definition at line 914 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_page_program | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint16_t | len | ||
) |
advance example page program
[in] | addr | programming address |
[in] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 269 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_power_down | ( | void | ) |
advance example power down
Definition at line 188 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_read | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example read
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 169 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_read_block_lock | ( | uint32_t | addr, |
uint8_t * | value | ||
) |
advance example read the block lock
[in] | addr | block address |
[out] | *value | pointer to a value buffer |
Definition at line 809 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_reset | ( | void | ) |
advance example reset
Definition at line 828 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_sector_erase_4k | ( | uint32_t | addr | ) |
advance example erase the 4k sector
[in] | addr | erase address |
Definition at line 289 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_set_status1 | ( | uint8_t | status | ) |
advance example set the status 1
[in] | status | set status |
Definition at line 607 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_set_status2 | ( | uint8_t | status | ) |
advance example set the status 2
[in] | status | set status |
Definition at line 627 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_set_status3 | ( | uint8_t | status | ) |
advance example set the status 3
[in] | status | set status |
Definition at line 647 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_wake_up | ( | void | ) |
advance example wake up
Definition at line 207 of file driver_w25qxx_advance.c.
uint8_t w25qxx_advance_write | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
advance example write
[in] | addr | written address |
[in] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 147 of file driver_w25qxx_advance.c.
uint8_t w25qxx_basic_chip_erase | ( | void | ) |
basic example chip erase
Definition at line 182 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 125 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_get_id | ( | uint8_t * | manufacturer, |
uint8_t * | device_id | ||
) |
basic example get the manufacturer && device id information
[out] | *manufacturer | pointer to a manufacturer buffer |
[out] | *device_id | pointer to a device id buffer |
Definition at line 203 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_init | ( | w25qxx_type_t | type, |
w25qxx_interface_t | interface, | ||
w25qxx_bool_t | dual_quad_spi_enable | ||
) |
basic example init
[in] | type | chip type |
[in] | interface | chip interface |
[in] | dual_quad_spi_enable | bool value |
Definition at line 51 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_power_down | ( | void | ) |
basic example power down
Definition at line 144 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_read | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
basic example read
[in] | addr | read address |
[out] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 247 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_wake_up | ( | void | ) |
basic example wake up
Definition at line 163 of file driver_w25qxx_basic.c.
uint8_t w25qxx_basic_write | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
basic example write
[in] | addr | written address |
[in] | *data | pointer to a data buffer |
[in] | len | data length |
Definition at line 225 of file driver_w25qxx_basic.c.