293 uint8_t
const * txData,
297 void * callbackData);
329 void * callbackData);
This file is part of the AFBR-S50 hardware API.
int32_t s2pi_slave_t
Definition argus_api.h:67
status_t(* s2pi_callback_t)(status_t status, void *param)
S2PI layer callback function type for the SPI transfer completed event.
Definition argus_s2pi.h:121
status_t S2PI_TryGetMutex(s2pi_slave_t slave)
Tries to grab the SPI interface mutex for the next transfer.
status_t S2PI_Abort(s2pi_slave_t slave)
Terminates a currently ongoing asynchronous SPI transfer.
status_t S2PI_TransferFrame(s2pi_slave_t slave, uint8_t const *txData, uint8_t *rxData, size_t frameSize, s2pi_callback_t callback, void *callbackData)
Transfers a single SPI frame asynchronously.
status_t S2PI_ReleaseGpioControl(s2pi_slave_t slave)
Releases the S2PI pins from GPIO usage and switches back to SPI mode.
status_t S2PI_ReadGpioPin(s2pi_slave_t slave, s2pi_pin_t pin, uint32_t *value)
Reads the input from a specified SPI pin in GPIO mode.
s2pi_pin_t
Definition argus_s2pi.h:136
status_t S2PI_CaptureGpioControl(s2pi_slave_t slave)
Captures the S2PI pins for GPIO usage.
status_t S2PI_CycleCsPin(s2pi_slave_t slave)
Cycles the chip select line.
void S2PI_ReleaseMutex(s2pi_slave_t slave)
Releases the SPI interface mutex.
status_t S2PI_SetIrqCallback(s2pi_slave_t slave, s2pi_irq_callback_t callback, void *callbackData)
Set a callback for the GPIO IRQ for a specified S2PI slave.
void(* s2pi_irq_callback_t)(void *param)
S2PI layer callback function type for the GPIO interrupt event.
Definition argus_s2pi.h:128
status_t S2PI_GetStatus(s2pi_slave_t slave)
Returns the status of the SPI module.
int32_t s2pi_slave_t
Definition argus_s2pi.h:132
uint32_t S2PI_ReadIrqPin(s2pi_slave_t slave)
Reads the current interrupt pending status of the IRQ pin.
status_t S2PI_WriteGpioPin(s2pi_slave_t slave, s2pi_pin_t pin, uint32_t value)
Writes the output for a specified SPI pin in GPIO mode.
@ S2PI_MOSI
Definition argus_s2pi.h:144
@ S2PI_MISO
Definition argus_s2pi.h:147
@ S2PI_CLK
Definition argus_s2pi.h:138
@ S2PI_CS
Definition argus_s2pi.h:141
@ S2PI_IRQ
Definition argus_s2pi.h:150
int32_t status_t
Type used for all status and error return values.
Definition argus_status.h:70
static status_t status
Definition argus_xtalk_cal_cli.c:140