Choco OS
V.0.16.9.0
Join to the chocolate world
|
Module with definitions of registers. More...
Macros | |
#define | oC_RegisterType_(REGISTER_NAME) |
Returns name of type for storing register value. More... | |
#define | oC_RegisterSize_(REGISTER_NAME) |
returns size of register in number of bits | |
#define | oC_RegisterByBaseAddress(BaseAddress, REGISTER_NAME) |
Access to register with dynamic base address. More... | |
#define | oC_Register(BASE_NAME, REGISTER_NAME) |
Access to register via base address name. More... | |
Typedefs | |
typedef volatile oC_UInt_t | oC_Register_t |
type for storing registers | |
The module contains definitions of types for each register. Each register type is a union that consist of register bits definitions and Value field.
#define oC_Register | ( | BASE_NAME, | |
REGISTER_NAME | |||
) |
The macro is for accessing registers, when the base address name is known at the compilation time - for example in case of system registers, or modules, when there is only one channel used you can use this macro to read/write register value.
BASE_NAME | Name of base address from the oc_ba_defs.h file |
REGISTER_NAME | Name of register from oc_registers_desf.h file |
Definition at line 117 of file oc_registers.h.
#define oC_RegisterByBaseAddress | ( | BaseAddress, | |
REGISTER_NAME | |||
) |
The macro is for accessing registers, when the base address is dynamically counted (for example it is given from user as channel).
BaseAddress | Base address of register map |
REGISTER_NAME | Name of a register from the oc_registers_defs.h file |
Definition at line 99 of file oc_registers.h.
#define oC_RegisterType_ | ( | REGISTER_NAME | ) |
The macro returns name of a structure type for parsing register bits. The type is created using macro and definitions from the oc_registers_defs.h file for each register.
Definition at line 73 of file oc_registers.h.