CMSIS Driver  Version 1.10 - Preliminary
Middleware Driver API for microcontroller peripherals
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Driver_SPI.c File Reference

Functions

ARM_DRV_VERSION ARM_SPI_GetVersion (void)
 Get driver version.
 
ARM_SPI_CAPABILITIES ARM_SPI_GetCapabilities (void)
 Get driver capabilities.
 
ARM_SPI_STATUS ARM_SPI_Initialize (ARM_SPI_SignalEvent_t cb_event)
 Initialize SPI Interface.
 
ARM_SPI_STATUS ARM_SPI_Uninitialize (void)
 De-initialize SPI Interface.
 
ARM_SPI_STATUS ARM_SPI_PowerControl (ARM_POWER_STATE state)
 Control SPI Interface Power.
 
ARM_SPI_STATUS ARM_SPI_Configure (ARM_SPI_FRAME_FORMAT frame_format, ARM_SPI_BIT_ORDER bit_order)
 Configure SPI Interface.
 
uint32_t ARM_SPI_BusSpeed (uint32_t bps)
 Set bus speed for SPI transfers.
 
ARM_SPI_STATUS ARM_SPI_SlaveSelect (ARM_SPI_SS_SIGNAL ss)
 Control Slave Select (SS) signal.
 
uint8_t ARM_SPI_TransferByte (uint8_t out)
 Send and receive one byte via SPI Interface.
 
ARM_SPI_STATUS ARM_SPI_SendData (const uint8_t *buf, uint32_t len)
 Send data block to SPI Slave.
 
ARM_SPI_STATUS ARM_SPI_ReceiveData (uint8_t *buf, uint32_t len, uint8_t out)
 Receive data block from SPI Slave.
 
ARM_SPI_STATUS ARM_SPI_AbortTransfer (void)
 Abort current SPI transfer.
 
void ARM_SPI_SignalEvent (ARM_SPI_EVENT event)
 Signal SPI Event.