S2-LP Low Level API  v. 1.3.0
Functions
SPI Exported Functions

Functions

void SdkEvalSpiInit (void)
 Initializes the SPI. More...
 
void SdkEvalSpiDeinit (void)
 Deinitializes the SPI. More...
 
StatusBytes SdkEvalSpiWriteRegisters (uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer)
 Write single or multiple registers. More...
 
StatusBytes SdkEvalSpiReadRegisters (uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer)
 Read single or multiple registers. More...
 
StatusBytes SdkEvalSpiCommandStrobes (uint8_t cCommandCode)
 Send a command. More...
 
StatusBytes SdkEvalSpiWriteFifo (uint8_t cNbBytes, uint8_t *pcBuffer)
 Write data into TX FIFO. More...
 
StatusBytes SdkEvalSpiReadFifo (uint8_t cNbBytes, uint8_t *pcBuffer)
 Read data from RX FIFO. More...
 
void SdkEvalEnterShutdown (void)
 Puts at logic 1 the SDN pin. More...
 
void SdkEvalExitShutdown (void)
 Put at logic 0 the SDN pin. More...
 
SFlagStatus SdkEvalCheckShutdown (void)
 check the logic(0 or 1) at the SDN pin. More...
 

Detailed Description

Function Documentation

◆ SdkEvalCheckShutdown()

SFlagStatus SdkEvalCheckShutdown ( void  )

check the logic(0 or 1) at the SDN pin.

Parameters
None.
Return values
FlagStatus.

Definition at line 365 of file SDK_EVAL_Gpio.c.

◆ SdkEvalEnterShutdown()

void SdkEvalEnterShutdown ( void  )

Puts at logic 1 the SDN pin.

Parameters
None.
Return values
None.

Definition at line 339 of file SDK_EVAL_Gpio.c.

◆ SdkEvalExitShutdown()

void SdkEvalExitShutdown ( void  )

Put at logic 0 the SDN pin.

Parameters
None.
Return values
None.

Definition at line 351 of file SDK_EVAL_Gpio.c.

◆ SdkEvalSpiCommandStrobes()

StatusBytes SdkEvalSpiCommandStrobes ( uint8_t  cCommandCode)

Send a command.

Parameters
cCommandCodecommand code to be sent
Return values
Devicestatus

Definition at line 348 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiDeinit()

void SdkEvalSpiDeinit ( void  )

Deinitializes the SPI.

Parameters
None
Return values
None

Definition at line 134 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiInit()

void SdkEvalSpiInit ( void  )

Initializes the SPI.

Parameters
None
Return values
None

Definition at line 223 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiReadFifo()

StatusBytes SdkEvalSpiReadFifo ( uint8_t  cNbBytes,
uint8_t *  pcBuffer 
)

Read data from RX FIFO.

Parameters
cNbBytesnumber of bytes to read from RX FIFO
pcBufferpointer to data read from RX FIFO
Return values
Devicestatus

Definition at line 399 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiReadRegisters()

StatusBytes SdkEvalSpiReadRegisters ( uint8_t  cRegAddress,
uint8_t  cNbBytes,
uint8_t *  pcBuffer 
)

Read single or multiple registers.

Parameters
cRegAddressbase register's address to be read
cNbBytesnumber of registers and bytes to be read
pcBufferpointer to the buffer of registers' values read
Return values
Devicestatus

Definition at line 324 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiWriteFifo()

StatusBytes SdkEvalSpiWriteFifo ( uint8_t  cNbBytes,
uint8_t *  pcBuffer 
)

Write data into TX FIFO.

Parameters
cNbBytesnumber of bytes to be written into TX FIFO
pcBufferpointer to data to write
Return values
Devicestatus

Definition at line 373 of file SDK_EVAL_Spi_Driver.c.

◆ SdkEvalSpiWriteRegisters()

StatusBytes SdkEvalSpiWriteRegisters ( uint8_t  cRegAddress,
uint8_t  cNbBytes,
uint8_t *  pcBuffer 
)

Write single or multiple registers.

Parameters
cRegAddressbase register's address to be write
cNbBytesnumber of registers and bytes to be write
pcBufferpointer to the buffer of values have to be written into registers
Return values
Devicestatus

Definition at line 291 of file SDK_EVAL_Spi_Driver.c.