![]() |
S2-LP Low Level API
v. 1.3.0
|
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... | |
SFlagStatus SdkEvalCheckShutdown | ( | void | ) |
check the logic(0 or 1) at the SDN pin.
None. |
FlagStatus. |
Definition at line 365 of file SDK_EVAL_Gpio.c.
void SdkEvalEnterShutdown | ( | void | ) |
Puts at logic 1 the SDN pin.
None. |
None. |
Definition at line 339 of file SDK_EVAL_Gpio.c.
void SdkEvalExitShutdown | ( | void | ) |
Put at logic 0 the SDN pin.
None. |
None. |
Definition at line 351 of file SDK_EVAL_Gpio.c.
StatusBytes SdkEvalSpiCommandStrobes | ( | uint8_t | cCommandCode | ) |
Send a command.
cCommandCode | command code to be sent |
Device | status |
Definition at line 348 of file SDK_EVAL_Spi_Driver.c.
void SdkEvalSpiDeinit | ( | void | ) |
Deinitializes the SPI.
None |
None |
Definition at line 134 of file SDK_EVAL_Spi_Driver.c.
void SdkEvalSpiInit | ( | void | ) |
Initializes the SPI.
None |
None |
Definition at line 223 of file SDK_EVAL_Spi_Driver.c.
StatusBytes SdkEvalSpiReadFifo | ( | uint8_t | cNbBytes, |
uint8_t * | pcBuffer | ||
) |
Read data from RX FIFO.
cNbBytes | number of bytes to read from RX FIFO |
pcBuffer | pointer to data read from RX FIFO |
Device | status |
Definition at line 399 of file SDK_EVAL_Spi_Driver.c.
StatusBytes SdkEvalSpiReadRegisters | ( | uint8_t | cRegAddress, |
uint8_t | cNbBytes, | ||
uint8_t * | pcBuffer | ||
) |
Read single or multiple registers.
cRegAddress | base register's address to be read |
cNbBytes | number of registers and bytes to be read |
pcBuffer | pointer to the buffer of registers' values read |
Device | status |
Definition at line 324 of file SDK_EVAL_Spi_Driver.c.
StatusBytes SdkEvalSpiWriteFifo | ( | uint8_t | cNbBytes, |
uint8_t * | pcBuffer | ||
) |
Write data into TX FIFO.
cNbBytes | number of bytes to be written into TX FIFO |
pcBuffer | pointer to data to write |
Device | status |
Definition at line 373 of file SDK_EVAL_Spi_Driver.c.
StatusBytes SdkEvalSpiWriteRegisters | ( | uint8_t | cRegAddress, |
uint8_t | cNbBytes, | ||
uint8_t * | pcBuffer | ||
) |
Write single or multiple registers.
cRegAddress | base register's address to be write |
cNbBytes | number of registers and bytes to be write |
pcBuffer | pointer to the buffer of values have to be written into registers |
Device | status |
Definition at line 291 of file SDK_EVAL_Spi_Driver.c.