30 #ifndef __S2LP_GENERICTYPES_H 31 #define __S2LP_GENERICTYPES_H 160 #define IS_SFUNCTIONAL_STATE(STATE) (STATE == S_DISABLE || STATE == S_ENABLE) 161 #define IS_SFLAG_STATUS(STATUS) (STATUS == S_RESET || STATUS == S_SET) 162 #define IS_SBOOL(STATUS) (STATUS == S_FALSE || STATUS == S_TRUE) 164 #define S_ABS(a) ((a)>0?(a):-(a)) 176 #ifdef S2LP_USE_FULL_ASSERT 184 #define s_assert_param(expr) ((expr) ? (void)0 : s_assert_failed((uint8_t *)__FILE__, __LINE__)) 185 void s_assert_failed(uint8_t* file, uint32_t line);
186 #elif S2LP_USE_VCOM_ASSERT 194 #define s_assert_param(expr) ((expr) ? (void)0 : s_assert_failed((uint8_t *)__FILE__, __LINE__,#expr)) 195 void s_assert_failed(uint8_t* file, uint32_t line,
char* expression);
197 #define s_assert_param(expr) {} SBool
boolean type enumeration.
SFunctionalState
S2LP Functional state. Used to enable or disable a specific option.
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.
S2LPState
S2LP States enumeration.
volatile S2LPStatus g_xStatus
S2LP Status global variable. This global variable of S2LPStatus type is updated on every SPI transact...