ChibiOS/HAL  7.0.3
hal_serial_nor.c File Reference

Serial NOR serial flash driver code. More...

#include "hal.h"
#include "hal_serial_nor.h"

Go to the source code of this file.

Functions

static const flash_descriptor_tsnor_get_descriptor (void *instance)
 Returns a pointer to the device descriptor. More...
 
static void bus_acquire (BUSDriver *busp, const BUSConfig *config)
 Bus acquisition and lock. More...
 
static void bus_release (BUSDriver *busp)
 Bus release. More...
 
void bus_stop (BUSDriver *busp)
 Stops the underlying bus driver. More...
 
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...
 

Variables

static const struct SNORDriverVMT snor_vmt
 Virtual methods table. More...
 

Detailed Description

Serial NOR serial flash driver code.

Definition in file hal_serial_nor.c.