ChibiOS/HAL
7.0.3
|
Serial NOR driver header. More...
Go to the source code of this file.
Data Structures | |
struct | SNORConfig |
Type of a SNOR configuration structure. More... | |
struct | SNORDriverVMT |
SNOR virtual methods table. More... | |
struct | SNORDriver |
Type of SNOR flash class. More... | |
Macros | |
#define | _snor_flash_methods_alone |
SNORDriver specific methods. More... | |
#define | _snor_flash_methods |
SNORDriver specific methods with inherited ones. More... | |
Bus interface modes. | |
#define | SNOR_BUS_DRIVER_SPI 0U |
#define | SNOR_BUS_DRIVER_WSPI 1U |
Configuration options | |
#define | SNOR_BUS_DRIVER SNOR_BUS_DRIVER_WSPI |
Physical transport interface. More... | |
#define | SNOR_SHARED_BUS TRUE |
Shared bus switch. More... | |
Functions | |
void | bus_cmd (BUSDriver *busp, uint32_t cmd) |
Sends a naked command. More... | |
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. More... | |
void | bus_cmd_receive (BUSDriver *busp, uint32_t cmd, size_t n, uint8_t *p) |
Sends a command followed by a data receive phase. More... | |
void | bus_cmd_addr (BUSDriver *busp, uint32_t cmd, flash_offset_t offset) |
Sends a command followed by a flash address. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | snorObjectInit (SNORDriver *devp) |
Initializes an instance. More... | |
void | snorStart (SNORDriver *devp, const SNORConfig *config) |
Configures and activates SNOR driver. More... | |
void | snorStop (SNORDriver *devp) |
Deactivates the SNOR driver. More... | |
void | snorMemoryMap (SNORDriver *devp, uint8_t **addrp) |
Enters the memory Mapping mode. More... | |
void | snorMemoryUnmap (SNORDriver *devp) |
Leaves the memory Mapping mode. More... | |
Serial NOR driver header.
Definition in file hal_serial_nor.h.