|
ChibiOS 21.11.4
|
Serial NOR serial flash driver code. More...
Go to the source code of this file.
Functions | |
| static const flash_descriptor_t * | snor_get_descriptor (void *instance) |
| Returns a pointer to the device descriptor. | |
| static flash_error_t | snor_read (void *instance, flash_offset_t offset, size_t n, uint8_t *rp) |
| static flash_error_t | snor_program (void *instance, flash_offset_t offset, size_t n, const uint8_t *pp) |
| static flash_error_t | snor_start_erase_all (void *instance) |
| static flash_error_t | snor_start_erase_sector (void *instance, flash_sector_t sector) |
| static flash_error_t | snor_verify_erase (void *instance, flash_sector_t sector) |
| static flash_error_t | snor_query_erase (void *instance, uint32_t *msec) |
| static flash_error_t | snor_acquire_exclusive (void *instance) |
| static flash_error_t | snor_release_exclusive (void *instance) |
| static flash_error_t | snor_read_sfdp (void *instance, flash_offset_t offset, size_t n, uint8_t *rp) |
| void | snor_spi_cmd_addr (BUSDriver *busp, uint32_t cmd, flash_offset_t offset) |
| void | bus_acquire (BUSDriver *busp, const BUSConfig *config) |
| Bus acquisition and lock. | |
| void | bus_release (BUSDriver *busp) |
| Bus release. | |
| void | bus_stop (BUSDriver *busp) |
| Stops the underlying bus driver. | |
| void | bus_cmd (BUSDriver *busp, uint32_t cmd) |
| Sends a naked command. | |
| void | bus_cmd_send (BUSDriver *busp, uint32_t cmd, size_t n, const uint8_t *p) |
| Sends a command followed by a data transmit phase. | |
| void | bus_cmd_receive (BUSDriver *busp, uint32_t cmd, size_t n, uint8_t *p) |
| Sends a command followed by a data receive phase. | |
| void | bus_cmd_addr (BUSDriver *busp, uint32_t cmd, flash_offset_t offset) |
| Sends a command followed by a flash address. | |
| void | bus_cmd_addr_send (BUSDriver *busp, uint32_t cmd, flash_offset_t offset, size_t n, const uint8_t *p) |
| Sends a command followed by a flash address and a data transmit phase. | |
| void | bus_cmd_addr_receive (BUSDriver *busp, uint32_t cmd, flash_offset_t offset, size_t n, uint8_t *p) |
| Sends a command followed by a flash address and a data receive phase. | |
| void | bus_cmd_dummy_receive (BUSDriver *busp, uint32_t cmd, uint32_t dummy, size_t n, uint8_t *p) |
| Sends a command followed by dummy cycles and a data receive phase. | |
| void | bus_cmd_addr_dummy_receive (BUSDriver *busp, uint32_t cmd, flash_offset_t offset, uint32_t dummy, size_t n, uint8_t *p) |
| Sends a command followed by a flash address, dummy cycles and a data receive phase. | |
| void | snorObjectInit (SNORDriver *devp, snor_nocache_buffer_t *nocache) |
| Initializes an instance. | |
| void | snorStart (SNORDriver *devp, const SNORConfig *config) |
| Configures and activates SNOR driver. | |
| void | snorStop (SNORDriver *devp) |
| Deactivates the SNOR driver. | |
| void | snorMemoryMap (SNORDriver *devp, uint8_t **addrp) |
| Enters the memory Mapping mode. | |
| void | snorMemoryUnmap (SNORDriver *devp) |
| Leaves the memory Mapping mode. | |
Variables | |
| static const struct SNORDriverVMT | snor_vmt |
| Virtual methods table. | |
Serial NOR serial flash driver code.
Definition in file hal_serial_nor.c.