Global¶
- group Global_core
core globals
lorem
Macros¶
- group Macros_core_h
Variables¶
- group Variables_core_h
API’s¶
- group Apis_core_h
Getters¶
- group Getters_core_h
Functions
-
CosmOS_ProgramConfigurationType *core_getCorePrograms(CosmOS_CoreConfigurationType *core)¶
Get core programs pointer.
- Parameters
core – [in] configuration pointer
- Returns
-
BitWidthType core_getCoreNumberOfPrograms(CosmOS_CoreConfigurationType *core)¶
Get core numberOfPrograms.
- Parameters
core – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType core_getCoreId(CosmOS_CoreConfigurationType *core)¶
Get coreId.
- Parameters
core – [in] configuration pointer
- Returns
BitWidthType
-
CosmOS_GenericVoidType core_getKernelPanicHook(CosmOS_CoreConfigurationType *coreVar)¶
Get core kernelPanicHook.
- Parameters
core – [in] configuration pointerVar
- Returns
CosmOS_GenericVoidType
-
AddressType core_getStackMemoryLowAddress(CosmOS_CoreConfigurationType *core)¶
Get stackMemoryLowAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
AddressType core_getStackMemoryHighAddress(CosmOS_CoreConfigurationType *core)¶
Get stackMemoryHighAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
AddressType core_getCodeMemoryLowAddress(CosmOS_CoreConfigurationType *core)¶
Get codeMemoryLowAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
AddressType core_getCodeMemoryHighAddress(CosmOS_CoreConfigurationType *core)¶
Get codeMemoryHighAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
AddressType core_getUnprotectedMemoryLowAddress(CosmOS_CoreConfigurationType *core)¶
Get unprotectedMemoryLowAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
AddressType core_getUnprotectedMemoryHighAddress(CosmOS_CoreConfigurationType *core)¶
Get unprotectedMemoryHighAddress.
- Parameters
core – [in] configuration pointer
- Returns
AddressType
-
BitWidthType core_getMsToTicks(CosmOS_CoreConfigurationType *core)¶
Get msToTicks.
- Parameters
core – [in] configuration pointer
- Returns
BitWidthType
-
BitWidthType core_getCoreNumberOfAlarms(CosmOS_CoreConfigurationType *core)¶
Get core numberOfAlarms.
- Parameters
core – [in] configuration pointer
- Returns
BitWidthType
-
CosmOS_SchedulableConfigurationType *core_getCoreSchedulableInExecution(CosmOS_CoreConfigurationType *core)¶
Get core schedulableInExecution pointer.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_ProgramConfigurationType *core_getCoreProgramInExecution(CosmOS_CoreConfigurationType *core)¶
Get core programInExecution pointer.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_ProgramConfigurationType *core_getCoreProgramCfgs(CosmOS_CoreConfigurationType *core)¶
Get core programCfgs.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_ProgramConfigurationType *core_getCoreProgramCfg(CosmOS_CoreConfigurationType *core, BitWidthType programIterator)¶
Get core programVar element pointer.
- Parameters
core – [in] configuration pointer
programIterator – [in] required program id
- Returns
-
CosmOS_SchedulerConfigurationType *core_getCoreScheduler(CosmOS_CoreConfigurationType *core)¶
Get core scheduler pointer.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_BarrierVariableType *core_getCoreBarrierVars(CosmOS_CoreConfigurationType *core)¶
Get core barrierVars pointer.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_BarrierVariableType *core_getBarrierVar(CosmOS_CoreConfigurationType *core, BitWidthType barrierId)¶
-
CosmOS_OsStateType core_getCoreOsState(CosmOS_CoreConfigurationType *core)¶
Get core osState.
- Parameters
core – [in] configuration pointer
- Returns
CosmOS_OsStateType
-
CosmOS_SysJobsConfigurationType *core_getCoreSysJobs(CosmOS_CoreConfigurationType *core)¶
Get core sysJobs.
- Parameters
core – [in] configuration pointer
- Returns
-
CosmOS_ProgramConfigurationType *core_getCorePrograms(CosmOS_CoreConfigurationType *core)¶
Setters¶
- group Setters_core_h
Functions
-
CosmOS_CoreConfigurationType *core_getCoreCfg(void)¶
Get current core configuration. This function can be called from the unprivileged context directly.
The implementation contains obtaining of the core configuration by calling the CILcore_getCoreCfg function and returning the result.
See also
TEST_CORE_GETCORECFG_EXECUTIONFLOW
See also
TEST_CORE_GETCORECFG_RETURNVALUE
- Parameters
none –
- Returns
-
void core_setSchedulableIntoCurrentContext(CosmOS_CoreConfigurationType *core, CosmOS_SchedulableConfigurationType *schedulableCfg)¶
Set program and schedulable into the current context. This function cannot be called from the unprivileged context directly.
The implementation contains obtaining of the program id from the schedulable variable by schedulable_getProgramId function. Then the program variable is obtained from all configured programs under the current core by function core_getCoreProgramCfg. Then is the program from schedulable that has to be set into the current context set as program in execution by calling function core_setCoreProgramInExecution and also the schedulable by calling function core_setCoreSchedulableInExecution. For the check of the prior schedulable in execution state is the prior schedulable obtained by calling function core_getCoreSchedulableInExecution and then the state of it by calling schedulable_getState function. If the prior schedulable is not NULL and if the state of the priorSchedulableCfg is SCHEDULABLE_STATE_ENUM__RUNNING the prior schedulable state is set to SCHEDULABLE_STATE_ENUM__READY. Then also state of the schedulable that has to be set into the current context is set by function schedulable_setState to the SCHEDULABLE_STATE_ENUM__RUNNING.
- Parameters
core – [out] configuration pointer
schedulableCfg – [in] configuration pointer
- Returns
none
-
void core_setCoreProgramInExecution(CosmOS_CoreConfigurationType *core, CosmOS_ProgramConfigurationType *programInExecutionParam)¶
Set core programInExecution pointer. This function cannot be called from the unprivileged context directly.
- Parameters
core – [out] configuration pointer
programInExecutionParam – [in] variable pointer
- Returns
none
-
void core_setCoreSchedulableInExecution(CosmOS_CoreConfigurationType *core, CosmOS_SchedulableConfigurationType *schedulableInExecutionParam)¶
Set core schedulableInExecution pointer. This function cannot be called from the unprivileged context directly.
- Parameters
core – [out] configuration pointer
schedulableInExecutionParam – [in] configuration pointer
- Returns
none
-
void core_setCoreOsState(CosmOS_CoreConfigurationType *core, CosmOS_OsStateType osStateParam)¶
-
CosmOS_CoreConfigurationType *core_getCoreCfg(void)¶
General¶
- group General_core_h