STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
LSTD_BITMATH.h File Reference

This file contains the bit math manipulation macro-functions. More...

+ This graph shows which files directly or indirectly include this file:

Macros

#define SET_BIT(REG, BITNUM)   (REG) |= (1 << (BITNUM))
 Set a certain bit's value. More...
 
#define CLEAR_BIT(REG, BITNUM)   (REG) &= ~(1 << (BITNUM))
 Clear a certain bit's value to. More...
 
#define TOGGLE_BIT(REG, BITNUM)   (REG) ^= (1 << (BITNUM))
 Toggle a bit to 0 if it's 1, 1 otherwise. More...
 
#define GET_BIT(REG, BITNUM)   (((REG) >> (BITNUM)) & 1)
 Return the value of the bit whether it's 1 or 0 More...
 

Detailed Description

This file contains the bit math manipulation macro-functions.

Author
Mohamed alaa
Version
1.0.0
Date
2023-06-18