Choco OS
V.0.16.9.0
Join to the chocolate world
|
Typedefs | |
typedef uint8_t | oC_Machine_DmaEncodingValue_t |
type for storing DMA encoding value | |
Enumerations |
Functions | |
static bool | oC_Machine_IsPowerRegisterSet (oC_Channel_t Channel) |
checks if power for channel is turn on More... | |
static oC_Power_t | oC_Machine_GetPowerStateForChannel (oC_Channel_t Channel) |
returns power state for channel More... | |
static bool | oC_Machine_SetPowerStateForChannel (oC_Channel_t Channel, oC_Power_t Power) |
configures power state for machine channel More... | |
static bool | oC_Machine_IsChannelPoweredOn (oC_Channel_t Channel) |
checks if channel is powered on More... | |
static const char * | oC_Machine_GetChannelName (oC_Channel_t Channel) |
returns printable name of channel More... | |
static bool | oC_Machine_WriteRegisterDirectDynamic (oC_Channel_t Channel, oC_RegisterOffset_t RegisterOffset, oC_Register_t Value) |
writes machine register More... | |
static oC_Register_t | oC_Machine_ReadRegisterDirectDynamic (oC_Channel_t Channel, oC_RegisterOffset_t RegisterOffset) |
reads machine register More... | |
#define oC_Machine_GetRegisterAddress | ( | Channel, | |
REGISTER_NAME | |||
) |
Example of usage:
Definition at line 146 of file oc_machine.h.
#define oC_Machine_IsRegisterReadable | ( | REGISTER_NAME | ) |
The macro is for checking if register with the given name is possible for read. Example:
Definition at line 177 of file oc_machine.h.
#define oC_Machine_IsRegisterWritable | ( | REGISTER_NAME | ) |
The macro is for checking if register with the given name is possible for write. Example:
Definition at line 162 of file oc_machine.h.
#define oC_Machine_ReadRegisterDirectStaticOffset | ( | Channel, | |
REGISTER_NAME | |||
) |
The macro is for reading register using REGISTER NAME
Example of usage:
Definition at line 214 of file oc_machine.h.
#define oC_Machine_Register | ( | Channel, | |
REGISTER_NAME | |||
) |
The macro is for accessing registers using channel and register name. Example of usage:
Definition at line 132 of file oc_machine.h.
#define oC_Machine_RegisterIndirectDynamic | ( | BaseAddress, | |
RegisterOffset | |||
) |
The macro is for accessing registers in full dynamic mode (base address and register offset is given as variable). Example of usage:
Definition at line 91 of file oc_machine.h.
#define oC_Machine_RegisterIndirectStatic | ( | BASE_NAME, | |
REGISTER_NAME | |||
) |
The macro is for accessing registers by register offset name and base address name. Example of usage:
Definition at line 118 of file oc_machine.h.
#define oC_Machine_RegisterIndirectStaticOffset | ( | BaseAddress, | |
REGISTER_NAME | |||
) |
The macro is for accessing registers by register offset name. Example of usage:
Definition at line 106 of file oc_machine.h.
#define oC_Machine_WriteRegisterDirectStaticOffset | ( | Channel, | |
REGISTER_NAME, | |||
Value | |||
) |
The macro allows to write machine register that is given as REGISTER_NAME.
Example of usage:
Definition at line 193 of file oc_machine.h.
The type stores all informations about DMA channel assignments.
Definition at line 448 of file oc_machine.h.
The type stores types of signals for DMA channels.
Definition at line 429 of file oc_machine.h.
|
inlinestatic |
The function returns string with name of channel.
Channel | machine channel defined in the oc_channels_defs.h file. |
Definition at line 657 of file oc_machine.h.
|
inlinestatic |
The function returns current state of power for machine channel.
Channel | machine channel defined in the oc_channels_defs.h file. |
Definition at line 550 of file oc_machine.h.
|
inlinestatic |
The function is for checking if the given machine channel is powered on.
Channel | machine channel defined in the oc_channels_defs.h file. |
Definition at line 640 of file oc_machine.h.
|
inlinestatic |
The function checks if power for channel is turned on.
Channel | machine channel defined in the oc_channels_defs.h file. |
Definition at line 532 of file oc_machine.h.
|
inlinestatic |
The function reads register that is given as channel (base address) and register offset.
Channel | machine channel defined in the oc_channels_defs.h file. |
RegisterOffset | Offset from a base address defined in oc_registers_defs.h |
Definition at line 713 of file oc_machine.h.
|
inlinestatic |
The function sets power state for channel. Note, that it only enable power for the given channel. If the register map of power register also should be powered on, you must do it by yourself earlier. Otherwise there will be hard fault.
Channel | machine channel defined in the oc_channels_defs.h file. |
Power | state of power to set (oC_Power_On or oC_Power_Off) |
Definition at line 593 of file oc_machine.h.
|
inlinestatic |
The function writes register that is given as channel (base address) and register offset.
Channel | machine channel defined in the oc_channels_defs.h file. |
RegisterOffset | Offset from a base address defined in oc_registers_defs.h |
Value | Value to write |
Definition at line 675 of file oc_machine.h.