Module utils

Source
Expand description

§Utility Functions

Common utility functions for bit manipulation and other low-level operations used throughout the STM32 template.

These functions provide safe, efficient implementations for register-level operations that are frequently needed when working with microcontroller hardware.

Functions§

read_bit
Reads the bit at bit_position in value.
set_bit
Sets or clears a single bit at bit_position in value according to bit_val.
set_bits
Sets n_bits bits at bit_position in value to new_bits_val.