38 #ifndef __S2LP_COMMANDS_H 39 #define __S2LP_COMMANDS_H 120 #define S2LPCmdStrobeTx() {uint8_t tmp=0x9C; S2LPSpiWriteRegisters(0x76,1,&tmp);\ 121 S2LPCmdStrobeCommand(CMD_TX);} 130 #define S2LPCmdStrobeRx() {uint8_t tmp=0x90; S2LPSpiWriteRegisters(0x76,1,&tmp);\ 131 S2LPCmdStrobeCommand(CMD_RX);} 134 #define S2LPCmdStrobeReady() S2LPCmdStrobeCommand(CMD_READY) 135 #define S2LPCmdStrobeStandby() S2LPCmdStrobeCommand(CMD_STANDBY) 136 #define S2LPCmdStrobeSleep() S2LPCmdStrobeCommand(CMD_SLEEP) 137 #define S2LPCmdStrobeLockRx() S2LPCmdStrobeCommand(CMD_LOCKRX) 138 #define S2LPCmdStrobeLockTx() S2LPCmdStrobeCommand(CMD_LOCKTX) 139 #define S2LPCmdStrobeSabort() S2LPCmdStrobeCommand(CMD_SABORT) 140 #define S2LPCmdStrobeLdcReload() S2LPCmdStrobeCommand(CMD_LDC_RELOAD) 141 #define S2LPCmdStrobeSequenceUpdate() S2LPCmdStrobeCommand(CMD_SEQUENCE_UPDATE) 142 #define S2LPCmdStrobeSres() S2LPCmdStrobeCommand(CMD_SRES) 143 #define S2LPCmdStrobeFlushRxFifo() S2LPCmdStrobeCommand(CMD_FLUSHRXFIFO) 144 #define S2LPCmdStrobeFlushTxFifo() S2LPCmdStrobeCommand(CMD_FLUSHTXFIFO)
S2LPCmd
S2LP Commands codes enumeration.
void S2LPCmdStrobeCommand(S2LPCmd xCommandCode)
Send a specific command to S2LP.
This file contains all the registers address and masks.
Header file for S2-LP types.