38 #if defined(GPCRC_PRESENT) && (GPCRC_COUNT > 0)
134 bool reverseByteOrder;
159 } GPCRC_Init_TypeDef;
162 #define GPCRC_INIT_DEFAULT \
177 void GPCRC_Init(GPCRC_TypeDef * gpcrc,
const GPCRC_Init_TypeDef * init);
178 void GPCRC_Reset(GPCRC_TypeDef * gpcrc);
190 __STATIC_INLINE
void GPCRC_Enable(GPCRC_TypeDef * gpcrc,
bool enable)
206 __STATIC_INLINE
void GPCRC_Start(GPCRC_TypeDef * gpcrc)
208 gpcrc->CMD = GPCRC_CMD_INIT;
222 __STATIC_INLINE
void GPCRC_InitValueSet(GPCRC_TypeDef * gpcrc, uint32_t initValue)
224 gpcrc->INIT = initValue;
242 __STATIC_INLINE
void GPCRC_InputU32(GPCRC_TypeDef * gpcrc, uint32_t data)
244 gpcrc->INPUTDATA = data;
262 __STATIC_INLINE
void GPCRC_InputU16(GPCRC_TypeDef * gpcrc, uint16_t data)
264 gpcrc->INPUTDATAHWORD = data;
282 __STATIC_INLINE
void GPCRC_InputU8(GPCRC_TypeDef * gpcrc, uint8_t data)
284 gpcrc->INPUTDATABYTE = data;
300 __STATIC_INLINE uint32_t GPCRC_DataRead(GPCRC_TypeDef * gpcrc)
320 __STATIC_INLINE uint32_t GPCRC_DataReadBitReversed(GPCRC_TypeDef * gpcrc)
322 return gpcrc->DATAREV;
338 __STATIC_INLINE uint32_t GPCRC_DataReadByteReversed(GPCRC_TypeDef * gpcrc)
340 return gpcrc->DATABYTEREV;
RAM and peripheral bit-field set and clear API.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
__STATIC_INLINE void BUS_RegBitWrite(volatile uint32_t *addr, unsigned int bit, unsigned int val)
Perform a single-bit write operation on a peripheral register.