S2-LP Low Level API  v. 1.3.0
Macros
Commands Exported Macros

Macros

#define S2LPCmdStrobeTx()
 Sends the TX command to S2-LP. Start to transmit. More...
 
#define S2LPCmdStrobeRx()
 Sends the RX command to S2-LP. Start to receive. More...
 
#define S2LPCmdStrobeReady()   S2LPCmdStrobeCommand(CMD_READY)
 
#define S2LPCmdStrobeStandby()   S2LPCmdStrobeCommand(CMD_STANDBY)
 
#define S2LPCmdStrobeSleep()   S2LPCmdStrobeCommand(CMD_SLEEP)
 
#define S2LPCmdStrobeLockRx()   S2LPCmdStrobeCommand(CMD_LOCKRX)
 
#define S2LPCmdStrobeLockTx()   S2LPCmdStrobeCommand(CMD_LOCKTX)
 
#define S2LPCmdStrobeSabort()   S2LPCmdStrobeCommand(CMD_SABORT)
 
#define S2LPCmdStrobeLdcReload()   S2LPCmdStrobeCommand(CMD_LDC_RELOAD)
 
#define S2LPCmdStrobeSequenceUpdate()   S2LPCmdStrobeCommand(CMD_SEQUENCE_UPDATE)
 
#define S2LPCmdStrobeSres()   S2LPCmdStrobeCommand(CMD_SRES)
 
#define S2LPCmdStrobeFlushRxFifo()   S2LPCmdStrobeCommand(CMD_FLUSHRXFIFO)
 
#define S2LPCmdStrobeFlushTxFifo()   S2LPCmdStrobeCommand(CMD_FLUSHTXFIFO)
 

Detailed Description

Macro Definition Documentation

◆ S2LPCmdStrobeFlushRxFifo

#define S2LPCmdStrobeFlushRxFifo ( )    S2LPCmdStrobeCommand(CMD_FLUSHRXFIFO)

Definition at line 141 of file S2LP_Commands.h.

◆ S2LPCmdStrobeFlushTxFifo

#define S2LPCmdStrobeFlushTxFifo ( )    S2LPCmdStrobeCommand(CMD_FLUSHTXFIFO)

Definition at line 142 of file S2LP_Commands.h.

◆ S2LPCmdStrobeLdcReload

#define S2LPCmdStrobeLdcReload ( )    S2LPCmdStrobeCommand(CMD_LDC_RELOAD)

Definition at line 138 of file S2LP_Commands.h.

◆ S2LPCmdStrobeLockRx

#define S2LPCmdStrobeLockRx ( )    S2LPCmdStrobeCommand(CMD_LOCKRX)

Definition at line 135 of file S2LP_Commands.h.

◆ S2LPCmdStrobeLockTx

#define S2LPCmdStrobeLockTx ( )    S2LPCmdStrobeCommand(CMD_LOCKTX)

Definition at line 136 of file S2LP_Commands.h.

◆ S2LPCmdStrobeReady

#define S2LPCmdStrobeReady ( )    S2LPCmdStrobeCommand(CMD_READY)

Definition at line 132 of file S2LP_Commands.h.

◆ S2LPCmdStrobeRx

#define S2LPCmdStrobeRx ( )
Value:
{uint8_t tmp=0x90; S2LPSpiWriteRegisters(0x76,1,&tmp);\
S2LPCmdStrobeCommand(CMD_RX);}
#define S2LPSpiWriteRegisters(cRegAddress, cNbBytes, pcBuffer)

Sends the RX command to S2-LP. Start to receive.

Parameters
None.
Return values
None.
Note
: this macro sets the SMPS switching frequency to 3.12MHz.

Definition at line 129 of file S2LP_Commands.h.

◆ S2LPCmdStrobeSabort

#define S2LPCmdStrobeSabort ( )    S2LPCmdStrobeCommand(CMD_SABORT)

Definition at line 137 of file S2LP_Commands.h.

◆ S2LPCmdStrobeSequenceUpdate

#define S2LPCmdStrobeSequenceUpdate ( )    S2LPCmdStrobeCommand(CMD_SEQUENCE_UPDATE)

Definition at line 139 of file S2LP_Commands.h.

◆ S2LPCmdStrobeSleep

#define S2LPCmdStrobeSleep ( )    S2LPCmdStrobeCommand(CMD_SLEEP)

Definition at line 134 of file S2LP_Commands.h.

◆ S2LPCmdStrobeSres

#define S2LPCmdStrobeSres ( )    S2LPCmdStrobeCommand(CMD_SRES)

Definition at line 140 of file S2LP_Commands.h.

◆ S2LPCmdStrobeStandby

#define S2LPCmdStrobeStandby ( )    S2LPCmdStrobeCommand(CMD_STANDBY)

Definition at line 133 of file S2LP_Commands.h.

◆ S2LPCmdStrobeTx

#define S2LPCmdStrobeTx ( )
Value:
{uint8_t tmp=0x9C; S2LPSpiWriteRegisters(0x76,1,&tmp);\
S2LPCmdStrobeCommand(CMD_TX);}
#define S2LPSpiWriteRegisters(cRegAddress, cNbBytes, pcBuffer)

Sends the TX command to S2-LP. Start to transmit.

Parameters
None.
Return values
None.
Note
: this macro sets the SMPS switching frequency to 5.46MHz about for ETSI regulation compliancy.

Definition at line 120 of file S2LP_Commands.h.