STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
Shared library

This library contains the shared macros and functions for all the standard types. More...

+ Collaboration diagram for Shared library:

Macros

#define SET_REGISTER_BIT_STATUS(PERPH, REG, BIT, BSTATUS)   (PERPH.REG.BIT = (BSTATUS == TRUE) ? 1U : 0U)
 Set register bit status (1 or 0) More...
 

Detailed Description

This library contains the shared macros and functions for all the standard types.

Macro Definition Documentation

◆ SET_REGISTER_BIT_STATUS

#define SET_REGISTER_BIT_STATUS (   PERPH,
  REG,
  BIT,
  BSTATUS 
)    (PERPH.REG.BIT = (BSTATUS == TRUE) ? 1U : 0U)

#include <LIB/LSTD_SHARED.h>

Set register bit status (1 or 0)

This macro is used to set a specific bit in a specific register

Parameters
[in]PERPHPeripheral address
[in]REGRegister name
[in]BITBit name
[in]BSTATUSBit status (TRUE or FALSE)