S32 SDK
clock_manager.h File Reference
#include "device_registers.h"
#include "status.h"
#include <stdbool.h>
#include "../src/clock/S32K144/clock_S32K144.h"

Go to the source code of this file.

Data Structures

struct  clock_manager_user_config_t
 Clock configuration structure. Implements clock_manager_user_config_t_Class. More...
 
struct  clock_notify_struct_t
 Clock notification structure passed to clock callback function. Implements clock_notify_struct_t_Class. More...
 
struct  clock_manager_callback_user_config_t
 Structure for callback function and its parameter. Implements clock_manager_callback_user_config_t_Class. More...
 
struct  clock_manager_state_t
 Clock manager state structure. Implements clock_manager_state_t_Class. More...
 

Typedefs

typedef status_t(* clock_manager_callback_t) (clock_notify_struct_t *notify, void *callbackData)
 Type of clock callback functions. More...
 

Enumerations

enum  clock_manager_notify_t { CLOCK_MANAGER_NOTIFY_RECOVER = 0x00U, CLOCK_MANAGER_NOTIFY_BEFORE = 0x01U, CLOCK_MANAGER_NOTIFY_AFTER = 0x02U }
 The clock notification type. Implements clock_manager_notify_t_Class. More...
 
enum  clock_manager_callback_type_t { CLOCK_MANAGER_CALLBACK_BEFORE = 0x01U, CLOCK_MANAGER_CALLBACK_AFTER = 0x02U, CLOCK_MANAGER_CALLBACK_BEFORE_AFTER = 0x03U }
 The callback type, indicates what kinds of notification this callback handles. Implements clock_manager_callback_type_t_Class. More...
 
enum  clock_manager_policy_t { CLOCK_MANAGER_POLICY_AGREEMENT, CLOCK_MANAGER_POLICY_FORCIBLE }
 Clock transition policy. Implements clock_manager_policy_t_Class. More...
 

Functions

Dynamic clock setting
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. More...
 
status_t CLOCK_SYS_UpdateConfiguration (uint8_t targetConfigIndex, clock_manager_policy_t policy)
 Set system clock configuration according to pre-defined structure. More...
 
status_t CLOCK_SYS_SetConfiguration (clock_manager_user_config_t const *config)
 Set system clock configuration. More...
 
uint8_t CLOCK_SYS_GetCurrentConfiguration (void)
 Get current system clock configuration. More...
 
clock_manager_callback_user_config_tCLOCK_SYS_GetErrorCallback (void)
 Get the callback which returns error in last clock switch. More...
 
status_t CLOCK_SYS_GetFreq (clock_names_t clockName, uint32_t *frequency)
 Gets the clock frequency for a specific clock name. More...