ChibiOS 21.11.4
hal_xsnor_base.c File Reference

Generated SNOR Base Driver source. More...

#include "hal.h"
#include "hal_xsnor_base.h"

Go to the source code of this file.

Functions

Interfaces implementation of hal_xsnor_base_c
static const flash_descriptor_t__xsnor_fls_get_descriptor_impl (void *ip)
 Implementation of interface method flsGetDescriptor().
static flash_error_t __xsnor_fls_read_impl (void *ip, flash_offset_t offset, size_t n, uint8_t *rp)
 Implementation of interface method flsRead().
static flash_error_t __xsnor_fls_program_impl (void *ip, flash_offset_t offset, size_t n, const uint8_t *pp)
 Implementation of interface method flsProgram().
static flash_error_t __xsnor_fls_start_erase_all_impl (void *ip)
 Implementation of interface method flsStartEraseAll().
static flash_error_t __xsnor_fls_start_erase_sector_impl (void *ip, flash_sector_t sector)
 Implementation of interface method flsStartEraseSector().
static flash_error_t __xsnor_fls_query_erase_impl (void *ip, unsigned *msec)
 Implementation of interface method flsQueryErase().
static flash_error_t __xsnor_fls_verify_erase_impl (void *ip, flash_sector_t sector)
 Implementation of interface method flsVerifyErase().
static flash_error_t __xsnor_fls_acquire_exclusive_impl (void *ip)
 Implementation of interface method flsAcquireExclusive().
static flash_error_t __xsnor_fls_release_exclusive_impl (void *ip)
 Implementation of interface method flsReleaseExclusive().
Methods implementations of hal_xsnor_base_c
void * __xsnor_objinit_impl (void *ip, const void *vmt)
 Implementation of object creation.
void __xsnor_dispose_impl (void *ip)
 Implementation of object finalization.
Regular methods of hal_xsnor_base_c
void __xsnor_spi_cmd_addr (void *ip, uint32_t cmd, flash_offset_t offset)
 Sends command and address over SPI.
void __xsnor_bus_acquire (void *ip)
 Bus acquisition and lock.
void __xsnor_bus_release (void *ip)
 Bus release and unlock.
void __xsnor_bus_cmd (void *ip, uint32_t cmd)
 Sends a naked command.
void __xsnor_bus_cmd_send (void *ip, uint32_t cmd, size_t n, const uint8_t *p)
 Sends a command followed by a data transmit phase.
void __xsnor_bus_cmd_receive (void *ip, uint32_t cmd, size_t n, uint8_t *p)
 Sends a command followed by a data receive phase.
void __xsnor_bus_cmd_addr (void *ip, uint32_t cmd, flash_offset_t offset)
 Sends a command followed by a flash address.
void __xsnor_bus_cmd_addr_send (void *ip, 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 __xsnor_bus_cmd_addr_receive (void *ip, 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 __xsnor_bus_cmd_dummy_receive (void *ip, 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 __xsnor_bus_cmd_addr_dummy_receive (void *ip, uint32_t cmd, flash_offset_t offset, uint32_t dummy, size_t n, uint8_t *p)
 Sends a complete header followed by a data receive phase.
flash_error_t xsnorStart (void *ip, const xsnor_config_t *config)
 Configures and activates a SNOR driver.
void xsnorStop (void *ip)
 Deactivates a SNOR driver.
flash_error_t xsnorMemoryMap (void *ip, uint8_t **addrp)
 Enters the memory mapped mode.
void xsnorMemoryUnmap (void *ip)
 Leaves the memory mapped mode.

Detailed Description

Generated SNOR Base Driver source.

Note
This is a generated file, do not edit directly.

Definition in file hal_xsnor_base.c.