27#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32660_SPIMSS_H_
28#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32660_SPIMSS_H_
31#include "mxc_device.h"
Definition: spimss_regs.h:76
unsigned rx_num
Definition: spimss.h:91
void * rx_data
Definition: spimss.h:87
mxc_spimss_callback_fn callback
Definition: spimss.h:93
unsigned len
Definition: spimss.h:89
mxc_spimss_width_t width
Definition: spimss.h:88
unsigned bits
Definition: spimss.h:90
uint8_t deass
Definition: spimss.h:85
void * tx_data
Definition: spimss.h:86
uint8_t ssel
Definition: spimss.h:84
unsigned tx_num
Definition: spimss.h:92
void(* mxc_spimss_callback_fn)(mxc_spimss_req_t *req, int error_code)
Callback function type used in asynchronous SPI Master communication requests.
Definition: spimss.h:76
int MXC_SPIMSS_GetTXDMAChannel(mxc_spimss_regs_t *spi)
Returns the current TX channel id set for SPIMSS DMA transaction.
int MXC_SPIMSS_SetAutoDMAHandlers(mxc_spimss_regs_t *spi, bool enable)
Enable Disable auto dma handling. If set to true, dma channel for transaction is acquired in the MXC_...
int MXC_SPIMSS_SlaveTrans(mxc_spimss_regs_t *spi, mxc_spimss_req_t *req)
Execute a slave transaction.
int MXC_SPIMSS_AbortAsync(mxc_spimss_req_t *req)
Aborts an Asynchronous request.
int MXC_SPIMSS_MasterTransAsync(mxc_spimss_regs_t *spi, mxc_spimss_req_t *req)
Asynchronously read/write SPI Master data.
int MXC_SPIMSS_SetRXDMAChannel(mxc_spimss_regs_t *spi, unsigned int channel)
Set the RX channel id for DMA to be used in SPIMSS DMA transaction.
int MXC_SPIMSS_MasterTrans(mxc_spimss_regs_t *spi, mxc_spimss_req_t *req)
Execute a master transaction.
int MXC_SPIMSS_Init(mxc_spimss_regs_t *spi, unsigned mode, unsigned freq, const sys_map_t sys_cfg)
Initialize the spi.
int MXC_SPIMSS_Shutdown(mxc_spimss_regs_t *spi)
Shutdown SPI module.
int MXC_SPIMSS_MasterTransDMA(mxc_spimss_regs_t *spi, mxc_spimss_req_t *req)
Execute a master transaction over DMA.
void MXC_SPIMSS_Handler(mxc_spimss_regs_t *spi)
Execute SPI transaction based on interrupt handler.
int MXC_SPIMSS_GetRXDMAChannel(mxc_spimss_regs_t *spi)
Returns the current RX channel id set for SPIMSS DMA transaction.
int MXC_SPIMSS_SetTXDMAChannel(mxc_spimss_regs_t *spi, unsigned int channel)
Set the TX channel id for DMA to be used in SPIMSS DMA transaction.
mxc_spimss_width_t
Enumeration type for setting the number data lines to use for communication.
Definition: spimss.h:53
int MXC_SPIMSS_SlaveTransAsync(mxc_spimss_regs_t *spi, mxc_spimss_req_t *req)
Asynchronously read/write SPI Slave data.
@ DUMMY_1
Definition: spimss.h:54
@ DUMMY_2
Definition: spimss.h:55
@ DUMMY_3
Definition: spimss.h:56
Structure definition for an SPI Master Transaction request.
Definition: spimss.h:83
Registers, Bit Masks and Bit Positions for the SPIMSS Peripheral Module.