Global¶
- group Global_schedulable
schedulable globals
lorem
Macros¶
- group Macros_schedulable_h
Variables¶
- group Variables_schedulable_h
API’s¶
- group Apis_schedulable_h
Getters¶
- group Getters_schedulable_h
Functions
-
CosmOS_StackConfigurationType *schedulable_getStack(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable stack pointer.
- Parameters
schedulable – [in] configuration pointer
- Returns
-
CosmOS_SchedulableInstanceType schedulable_getInstanceType(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable instanceType.
- Parameters
schedulable – [in] configuration pointer
- Returns
CosmOS_SchedulableInstanceType
-
CosmOS_GenericVoidType schedulable_getHandler(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable handler.
- Parameters
schedulable – [in] configuration pointer
- Returns
CosmOS_GenericVoidType
-
CosmOS_BooleanType schedulable_getFp(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable fb.
- Parameters
schedulable – [in] configuration pointer
- Returns
CosmOS_BooleanType
-
BitWidthType schedulable_getId(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable id.
- Parameters
schedulable – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType schedulable_getInstanceId(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable instanceId.
- Parameters
schedulable – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType schedulable_getProgramId(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable programId.
- Parameters
schedulable – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType schedulable_getCoreId(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable coreId.
- Parameters
schedulable – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType schedulable_getAlarmId(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable alarmId.
- Parameters
schedulable – [in] configuration pointer
- Returns
BitWidthType
-
AddressType schedulable_getPeripheralAccessLowAddress(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable peripheralAccessLowAddress.
- Parameters
schedulable – [in] configuration pointer
- Returns
AddressType
-
AddressType schedulable_getPeripheralAccessHighAddress(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable peripheralAccessHighAddress.
- Parameters
schedulable – [in] configuration pointer
- Returns
AddressType
-
AddressType schedulable_getPeripheralAccessSize(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable peripheralAccessSize.
- Parameters
schedulable – [in] configuration pointer
- Returns
AddressType
-
CosmOS_SchedulableStateType schedulable_getState(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable state.
- Parameters
schedulable – [in] configuration pointer
- Returns
CosmOS_SchedulableStateType
-
StackPointerType schedulable_getStackPointer(CosmOS_SchedulableConfigurationType *schedulable)¶
Get schedulable stackPointer.
- Parameters
schedulable – [in] configuration pointer
- Returns
StackPointerType
-
CosmOS_StackConfigurationType *schedulable_getStack(CosmOS_SchedulableConfigurationType *schedulable)¶
Setters¶
- group Setters_schedulable_h
Functions
-
void schedulable_setExecutionStateToFinished(BitWidthType entityId)¶
Set schedulable execution state to finished. This function cannot be called from the unprivileged context directly. DEMO.
The implementation contains obtaining of the core configuration by calling the CILcore_getCoreCfg function. Then the schedulable configuration in execution is obtained by the core_getCoreSchedulableInExecution function. The schedulable configuration is used in schedulable_setState function call that sets the schedulable state to the SCHEDULABLE_STATE_ENUM__EXECUTED.
- Parameters
entityId – [in] is used during the system call dispatching
- Returns
none
-
void schedulable_setState(CosmOS_SchedulableConfigurationType *schedulable, CosmOS_SchedulableStateType stateParam)¶
Set schedulable state. This function cannot be called from the unprivileged context directly.
- Parameters
schedulable – [out] configuration pointer
stateParam – [in] state of the schedulable configuration to be set
- Returns
CosmOS_SchedulableStateType
-
void schedulable_setStackPointer(CosmOS_SchedulableConfigurationType *schedulable, StackPointerType stackPointerParam)¶
Set schedulable stackPointer. This function cannot be called from the unprivileged context directly.
- Parameters
schedulable – [out] configuration pointer
stackPointerParam – [in] stack pointer of the schedulable configuration to be set
- Returns
none
-
void schedulable_setExecutionStateToFinished(BitWidthType entityId)¶
General¶
- group General_schedulable_h