46 #ifndef __MCU_INTERFACE_H 47 #define __MCU_INTERFACE_H 115 #define S2LPEnterShutdown SdkEvalEnterShutdown 116 #define S2LPExitShutdown SdkEvalExitShutdown 117 #define S2LPCheckShutdown (S2LPFlagStatus)SdkEvalCheckShutdown 119 #define S2LPSpiInit SdkEvalSpiInit 120 #define S2LPSpiDeinit SdkEvalSpiDeinit 121 #define S2LPSpiWriteRegisters(cRegAddress, cNbBytes, pcBuffer) SdkEvalSpiWriteRegisters(cRegAddress, cNbBytes, pcBuffer) 122 #define S2LPSpiReadRegisters(cRegAddress, cNbBytes, pcBuffer) SdkEvalSpiReadRegisters(cRegAddress, cNbBytes, pcBuffer) 123 #define S2LPSpiCommandStrobes(cCommandCode) SdkEvalSpiCommandStrobes(cCommandCode) 124 #define S2LPSpiWriteFifo(cNbBytes, pcBuffer) SdkEvalSpiWriteFifo(cNbBytes, pcBuffer) 125 #define S2LPSpiReadFifo(cNbBytes, pcBuffer) SdkEvalSpiReadFifo(cNbBytes, pcBuffer) SFlagStatus SdkEvalCheckShutdown(void)
check the logic(0 or 1) at the SDN pin.
StatusBytes SdkEvalSpiReadRegisters(uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer)
Read single or multiple registers.
S2LP Status. This definition represents the single field of the S2LP status returned on each SPI tran...
SFlagStatus
S2LP Flag status. Used to control the state of a flag.
StatusBytes SdkEvalSpiWriteRegisters(uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer)
Write single or multiple registers.
StatusBytes SdkEvalSpiReadFifo(uint8_t cNbBytes, uint8_t *pcBuffer)
Read data from RX FIFO.
S2LP Configuration and useful defines .
void SdkEvalSpiInit(void)
Write single or multiple registers.
void SdkEvalSpiDeinit(void)
Deinitializes the SPI.
void SdkEvalEnterShutdown(void)
Puts at logic 1 the SDN pin.
void SdkEvalExitShutdown(void)
Put at logic 0 the SDN pin.
StatusBytes SdkEvalSpiWriteFifo(uint8_t cNbBytes, uint8_t *pcBuffer)
Write data into TX FIFO.
StatusBytes SdkEvalSpiCommandStrobes(uint8_t cCommandCode)
Send a command.