19 #if !defined(CLOCK_MANAGER_H)
20 #define CLOCK_MANAGER_H
29 #if (defined(S32K144_SERIES))
31 #include "../src/clock/S32K144/clock_S32K144.h"
32 #elif (defined(S32V234_SERIES))
34 #include "../src/clock/S32V234/clock_S32V234.h"
36 #error "No valid CPU defined!"
68 #if (defined(S32K144_SERIES))
152 #if defined(__cplusplus)
175 uint8_t configsNumber,
177 uint8_t callbacksNumber);
258 uint32_t *frequency);
263 #if defined(__cplusplus)
Clock manager state structure. Implements clock_manager_state_t_Class.
status_t CLOCK_SYS_UpdateConfiguration(uint8_t targetConfigIndex, clock_manager_policy_t policy)
Set system clock configuration according to pre-defined structure.
clock_manager_callback_user_config_t ** callbackConfig
clock_manager_user_config_t const ** configTable
SCG configure structure. Implements scg_config_t_Class.
clock_manager_policy_t policy
SIM configure structure. Implements sim_clock_config_t_Class.
clock_manager_policy_t
Clock transition policy. Implements clock_manager_policy_t_Class.
Structure for callback function and its parameter. Implements clock_manager_callback_user_config_t_Cl...
status_t CLOCK_SYS_SetConfiguration(clock_manager_user_config_t const *config)
Set system clock configuration.
clock_manager_callback_t callback
status_t CLOCK_SYS_GetFreq(clock_names_t clockName, uint32_t *frequency)
Gets the clock frequency for a specific clock name.
uint8_t CLOCK_SYS_GetCurrentConfiguration(void)
Get current system clock configuration.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
status_t CLOCK_SYS_Init(clock_manager_user_config_t const **clockConfigsPtr, uint8_t configsNumber, clock_manager_callback_user_config_t **callbacksPtr, uint8_t callbacksNumber)
Install pre-defined clock configurations.
sim_clock_config_t simConfig
clock_manager_callback_type_t callbackType
clock_names_t
Clock names.
uint8_t targetClockConfigIndex
clock_manager_notify_t
The clock notification type. Implements clock_manager_notify_t_Class.
uint8_t errorCallbackIndex
clock_manager_notify_t notifyType
clock_manager_callback_type_t
The callback type, indicates what kinds of notification this callback handles. Implements clock_manag...
Clock configuration structure. Implements clock_manager_user_config_t_Class.
Clock notification structure passed to clock callback function. Implements clock_notify_struct_t_Clas...
clock_manager_callback_user_config_t * CLOCK_SYS_GetErrorCallback(void)
Get the callback which returns error in last clock switch.
status_t(* clock_manager_callback_t)(clock_notify_struct_t *notify, void *callbackData)
Type of clock callback functions.
PCC configuration. Implements pcc_config_t_Class.