ChibiOS/HAL 9.0.0
hal_wspi.c File Reference

WSPI Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void wspiInit (void)
 WSPI Driver initialization.
void wspiObjectInit (WSPIDriver *wspip)
 Initializes the standard part of a WSPIDriver structure.
msg_t wspiStart (WSPIDriver *wspip, const WSPIConfig *config)
 Configures and activates the WSPI peripheral.
void wspiStop (WSPIDriver *wspip)
 Deactivates the WSPI peripheral.
void wspiStartCommand (WSPIDriver *wspip, const wspi_command_t *cmdp)
 Sends a command without data phase.
void wspiStartSend (WSPIDriver *wspip, const wspi_command_t *cmdp, size_t n, const uint8_t *txbuf)
 Sends a command with data over the WSPI bus.
void wspiStartReceive (WSPIDriver *wspip, const wspi_command_t *cmdp, size_t n, uint8_t *rxbuf)
 Sends a command then receives data over the WSPI bus.
bool wspiCommand (WSPIDriver *wspip, const wspi_command_t *cmdp)
 Sends a command without data phase.
bool wspiSend (WSPIDriver *wspip, const wspi_command_t *cmdp, size_t n, const uint8_t *txbuf)
 Sends a command with data over the WSPI bus.
bool wspiReceive (WSPIDriver *wspip, const wspi_command_t *cmdp, size_t n, uint8_t *rxbuf)
 Sends a command then receives data over the WSPI bus.
void wspiMapFlash (WSPIDriver *wspip, const wspi_command_t *cmdp, uint8_t **addrp)
 Maps in memory space a WSPI flash device.
void wspiUnmapFlash (WSPIDriver *wspip)
 Unmaps from memory space a WSPI flash device.
void wspiAcquireBus (WSPIDriver *wspip)
 Gains exclusive access to the WSPI bus.
void wspiReleaseBus (WSPIDriver *wspip)
 Releases exclusive access to the WSPI bus.

Detailed Description

WSPI Driver code.

Definition in file hal_wspi.c.