AFBR-S50 API Reference Manual  v1.6.5
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
explorer_macro.h
Go to the documentation of this file.
1 /*************************************************************************/
37 #ifndef EXPLORER_MACRO_H
38 #define EXPLORER_MACRO_H
39 
40 /*!***************************************************************************
41  * @defgroup explorer_macro Explorer Macro Operations
42  * @ingroup explorer_app
43  *
44  * @brief Explorer Application Macro helper operations.
45  *
46  * @details Provides quick macro helpers for the Explorer App.
47  *
48  * @addtogroup explorer_app
49  * @{
50  *****************************************************************************/
51 
52 #define SET_BIT_U32(word, bit) ((word) |= (uint32_t)(bit))
53 #define CLR_BIT_U32(word, bit) ((word) &= (uint32_t)(~(bit)))
54 #define IS_BIT_U32(word, bit) ((word) & (uint32_t)(bit))
55 
57 #endif /* EXPLORER_MACRO_H */