 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
44 #include "spixr_regs.h"
68 MXC_SPIXR_SINGLE_SDIO = 0,
void MXC_SPIXR_ExMemEnable(void)
Enable the external memory mode.
mxc_spixr_width_t
Structure type for configuring a SPIXR port.
Definition: spixr.h:67
uint32_t ssel_inact
Slave Select Inactive delay.
Definition: spixr.h:95
void MXC_SPIXR_ExMemUseDummy(int delay255)
Put 255 characters worth of clocks between address and read phase of external memory transactions.
void MXC_SPIXR_SetSS(int ssIdx)
Select which SS pin is used in SPIXR.
int MXC_SPIXR_SetSPIMode(mxc_spixr_mode_t mode)
Set the SPI Mode used.
void MXC_SPIXR_ThreeWireModeDisable(void)
Disable three wire mode.
void MXC_SPIXR_ThreeWireModeEnable(void)
Enable three wire mode.
int MXC_SPIXR_WriteTXFIFO(uint8_t *buf, int len)
Loads bytes into the FIFO.
int MXC_SPIXR_Busy(void)
SPI active status.
void MXC_SPIXR_Disable(void)
Disable the SPIXR peripheral.
int MXC_SPIXR_SetFrequency(int hz)
Set the SPI Frequency.
int MXC_SPIXR_DmaTXFIFOIsEnabled(void)
Get if TXFIFO DMA is enabled.
void MXC_SPIXR_TXFIFOEnable(void)
Enable the TXFIFO.
void MXC_SPIXR_RXFIFOClear(void)
Clear RX FIFO.
void MXC_SPIXR_ExMemSetWriteCommand(uint8_t command)
Set the write command used for external memory mode.
void MXC_SPIXR_DmaTXFIFOEnable(void)
Enable the TXFIFO DMA.
int MXC_SPIXR_RXFIFOIsEnabled(void)
Get if RXFIFO is enabled.
void MXC_SPIXR_DisableInt(int flags)
Disable SPIXR interrupts.
void MXC_SPIXR_RXFIFOEnable(void)
Enable the RXFIFO.
int MXC_SPIXR_GetRXFIFOCount(void)
Get the number of bytes currently in the RX FIFO.
void MXC_SPIXR_ExMemSetReadCommand(uint8_t command)
Set the read command used for external memory mode.
void MXC_SPIXR_DmaRXFIFOEnable(void)
Enable the RXFIFO DMA.
uint32_t ssel_act_1
Slave Select Action delay 1.
Definition: spixr.h:93
int MXC_SPIXR_TXFIFOIsEnabled(void)
Get if TXFIFO is enabled.
uint8_t MXC_SPIXR_ExMemGetReadCommand(void)
Get the read command used for external memory mode.
void MXC_SPIXR_EnableWakeUp(int flags)
Enable Wake up for SPIXR.
uint32_t ssel_act_2
Slave Select Action delay 2.
Definition: spixr.h:94
void MXC_SPIXR_SetSSTiming(unsigned int ssIActDelay, unsigned int postActive, unsigned int preActive)
Set the SS Timing Parameters.
mxc_spixr_width_t data_width
SPI Data width.
Definition: spixr.h:91
int MXC_SPIXR_IsEnabled(void)
Get if SPIXR is enabled.
int MXC_SPIXR_GetTXFIFOCount(void)
Get the number of bytes currently in the TX FIFO.
void MXC_SPIXR_ExMemDisable(void)
Disable the SPI RAM XIP Data module.
uint8_t MXC_SPIXR_ExMemGetWriteCommand(void)
Get the write command used for external memory mode.
void MXC_SPIXR_SendCommand(uint8_t *cmd, uint32_t length, uint32_t tx_num_char)
Send a SPI formatted instruction to external RAM.
int MXC_SPIXR_Init(mxc_spixr_cfg_t *cfg)
Initialize the SPI RAM XIP Data module.
void MXC_SPIXR_Enable(void)
Enable the SPIXR peripheral.
int MXC_SPIXR_GetWakeUpFlags(void)
Get the active wake up flags.
void MXC_SPIXR_DmaTXFIFODisable(void)
Disable the TXFIFO DMA.
uint32_t numbits
Number of Bits per character. In slave mode 9-bit character length is not supported.
Definition: spixr.h:90
void MXC_SPIXR_TXFIFODisable(void)
Disable the TXFIFO.
int MXC_SPIXR_ReadRXFIFO(uint8_t *buf, int len)
Unloads bytes from the FIFO.
int MXC_SPIXR_SetWidth(mxc_spixr_width_t width)
Set the SPI Width used.
int MXC_SPIXR_GetSSCtrl(void)
Get the setting that controls deassertion of the SS line.
uint32_t baud_freq
Desired frequency.
Definition: spixr.h:97
int MXC_SPIXR_GetSS(void)
Returns the SS line selected.
mxc_spixr_mode_t
SPIXF mode.
Definition: spixr.h:78
void MXC_SPIXR_SetSSCtrl(int stayActive)
Control the deassertion of the SS line.
void MXC_SPIXR_EnableInt(int flags)
Enable SPIXR interrupts.
void MXC_SPIXR_DmaRXFIFODisable(void)
Disable the RXFIFO DMA.
Configuration parameters of SPIXR.
Definition: spixr.h:88
int MXC_SPIXR_GetFrequency(void)
Get the SPI Frequency.
int MXC_SPIXR_GetIntFlags(void)
Get the active interrupt flags.
int MXC_SPIXR_DmaRXFIFOIsEnabled(void)
Get if RXFIFO DMA is enabled.
void MXC_SPIXR_RXFIFODisable(void)
Disable the RXFIFO.
int MXC_SPIXR_SetSSPolarity(int activeLow)
Set the active state of the SS line.
void MXC_SPIXR_DisableWakeUp(int flags)
Enable Wake up for SPIXR.
int MXC_SPIXR_Shutdown(void)
Shut Down the SPI RAM XIP Data Module.
void MXC_SPIXR_TXFIFOClear(void)
Clear TX FIFO.
int MXC_SPIXR_ThreeWireModeIsEnabled(void)
Get if three wire mode is enabled.