Local

group Local_permission

permission locals

lorem

Macros

group Macros_permission

Defines

BITLOCK_MASK

Variables

group Variables_permission

API’s

group Apis_permission_c

Getters

group Getters_permission_c

Setters

group Setters_permission_c

General

group General_permission_c

Functions

CosmOS_AccessStateType permission_trySchedulableAccess(CosmOS_PermissionsConfigurationType *permission, CosmOS_SchedulableConfigurationType *schedulableCfg)

Try if schedulable has access.

The implementation contains cosmosAssert call with the comparing of bitlock and bitlock inverted value. After this the bitlock element from bitlock array is extracted by the unique schedulable id and the specific bit shifted by the unique schedulable id. If the bit is 0 function returns ACCESS_STATE_ENUM__DENIED if 1 ACCESS_STATE_ENUM__ALLOWED.

Parameters
  • permission[in] pointer to the permission configuration type

  • schedulableCfg[in] configuration pointer

Returns

CosmOS_AccessStateType