7 File kernel/include/register_utils.h

7.1 Functions

Type Name
uint32_t bea_get_reg_bits (volatile uint32_t *base_addr, uint8_t msb, uint8_t lsb)
Get bits in a hardware memory-mapped register (assumed to be 32 bits wide). Reading from an incorrect memory address is undefined behavior and may trigger a hard fault or other interrupt.
void bea_set_reg_bits (volatile uint32_t *base_addr, uint8_t msb, uint8_t lsb, uint32_t value)
Set bits in a hardware memory-mapped register (assumed to be 32 bits wide). Writing to an incorrect memory address is undefined behavior and may trigger a hard fault or other interrupt.

7.2 Functions Documentation

7.2.1 function bea_get_reg_bits

Get bits in a hardware memory-mapped register (assumed to be 32 bits wide). Reading from an incorrect memory address is undefined behavior and may trigger a hard fault or other interrupt.

uint32_t bea_get_reg_bits (
    volatile uint32_t *base_addr,
    uint8_t msb,
    uint8_t lsb
) 

Parameters:

Set bits in a hardware memory-mapped register (assumed to be 32 bits wide). Writing to an incorrect memory address is undefined behavior and may trigger a hard fault or other interrupt.

void bea_set_reg_bits (
    volatile uint32_t *base_addr,
    uint8_t msb,
    uint8_t lsb,
    uint32_t value
) 

Parameters: