Function mem_rmwr32

Function Documentation

static inline status_t mem_rmwr32(uint32_t addr, uint32_t wval, uint32_t mask)

Read, modify, write, and readback a memory value.

Reading back the value written verifies the write was successful.

Parameters:
  • addr – The address of register/memory location to write

  • wval – The 32-bit value to write

  • mask – The 32-bit insert mask. Bits that are 0 will not be altered, regardless of the value written

Returns:

status_t