|
Zth (libzth)
|
Classes | |
| struct | zth::Register< T, Addr, Fields > |
| Helper class to read/write (bitfields in) hardware registers. More... | |
Macros | |
| #define | ZTH_REG_DEFINE(T, name, addr, fields...) |
| Define a hardware reference helper class, with bitfields. More... | |
| #define ZTH_REG_DEFINE | ( | T, | |
| name, | |||
| addr, | |||
| fields... | |||
| ) |
Define a hardware reference helper class, with bitfields.
Example to create zth::reg_mpu_type register:
Afterwards, instantiate the zth::reg_mpu_type class to access the hardware register.