Appiko
S2LP_Qi.h
Go to the documentation of this file.
1 
48 /* Define to prevent recursive inclusion -------------------------------------*/
49 #ifndef __S2LP_QI_H
50 #define __S2LP_QI_H
51 
52 
53 /* Includes ------------------------------------------------------------------*/
54 
55 #include "S2LP_Regs.h"
56 #include "S2LP_Types.h"
57 
58 
59 #ifdef __cplusplus
60  extern "C" {
61 #endif
62 
63 
85 typedef enum {
86  RSSI_STATIC_MODE = 0, /* static mode */
87  RSSI_DYNAMIC_6DB_STEP_MODE, /* dynamic mode 6 dB above threshold*/
88  RSSI_DYNAMIC_12DB_STEP_MODE, /* dynamic mode 12 dB above threshold */
89  RSSI_DYNAMIC_18DB_STEP_MODE /* dynamic mode 18 dB above threshold */
90 } SRssiMode;
91 
92 
96 typedef struct {
97  uint8_t cRssiFlt;
99  int32_t cRssiThreshdBm;
100 } SRssiInit;
101 
102 
135 int32_t S2LPRadioGetRssidBm(void);
136 int32_t S2LPRadioGetRssidBmRun(void);
137 void S2LPRadioSetRssiThreshdBm(int32_t wRssiThrehsold);
139 void S2LPRadioRssiInit(SRssiInit* xSRssiInit);
140 void S2LPRadioGetRssiInfo(SRssiInit* xSRssiInit);
141 void S2LPRadioAntennaSwitching(SFunctionalState xAntennaSwitch);
142 void S2LPRadioSetPqiCheck(uint8_t cPqiLevel);
144 
159 #ifdef __cplusplus
160 }
161 #endif
162 
163 #endif
164 
165 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
int32_t S2LPRadioGetRssidBmRun(void)
Returns the RSSI value from a current RX mode.
Definition: S2LP_Qi.c:121
S2LP RSSI Init structure definition.
Definition: S2LP_Qi.h:96
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
Definition: S2LP_Types.h:67
uint8_t cRssiFlt
Definition: S2LP_Qi.h:97
SFlagStatus S2LPQiGetCs(void)
Return the CS (carrier sense) indication.
Definition: S2LP_Qi.c:265
SFlagStatus
S2LP Flag status. Used to control the state of a flag.
Definition: S2LP_Types.h:76
void S2LPRadioSetPqiCheck(uint8_t cPqiLevel)
Set the PQI check.
Definition: S2LP_Qi.c:247
void S2LPRadioGetRssiInfo(SRssiInit *xSRssiInit)
Return the RSSI measurements information to be filled with the information.
Definition: S2LP_Qi.c:183
void S2LPRadioRssiInit(SRssiInit *xSRssiInit)
Initialize the RSSI measurement.
Definition: S2LP_Qi.c:155
void S2LPRadioSetRssiThreshdBm(int32_t wRssiThrehsold)
Set the RSSI threshold in dBm.
Definition: S2LP_Qi.c:139
This file contains all the registers address and masks.
int32_t S2LPRadioGetRssidBm(void)
Returns the RSSI value.
Definition: S2LP_Qi.c:109
void S2LPRadioCsBlanking(SFunctionalState xCsBlank)
Enable or disables the CS blanking.
Definition: S2LP_Qi.c:201
SRssiMode
S2LP RSSI mode enumeration.
Definition: S2LP_Qi.h:85
int32_t cRssiThreshdBm
Definition: S2LP_Qi.h:99
Header file for S2-LP types.
void S2LPRadioAntennaSwitching(SFunctionalState xAntennaSwitch)
Enable or Disable the antenna switching.
Definition: S2LP_Qi.c:224
SRssiMode xRssiMode
Definition: S2LP_Qi.h:98