caffeine-hal 0.6.6
A Header-Defined Interface c library, it provides the hal layer for the Caffeine framework
Loading...
Searching...
No Matches
Data Fields
cfn_hal_clock_api_s Struct Reference

Clock Virtual Method Table (VMT). More...

#include <cfn_hal_clock.h>

Data Fields

cfn_hal_api_base_t base
 
cfn_hal_error_code_t(* suspend_tick )(cfn_hal_clock_t *driver)
 
cfn_hal_error_code_t(* resume_tick )(cfn_hal_clock_t *driver)
 
cfn_hal_error_code_t(* get_system_freq )(cfn_hal_clock_t *driver, uint32_t *freq_hz)
 
cfn_hal_error_code_t(* get_peripheral_freq )(cfn_hal_clock_t *driver, uint32_t peripheral_id, uint32_t *freq_hz)
 
cfn_hal_error_code_t(* enable_gate )(cfn_hal_clock_t *driver, uint32_t peripheral_id)
 
cfn_hal_error_code_t(* disable_gate )(cfn_hal_clock_t *driver, uint32_t peripheral_id)
 

Detailed Description

Clock Virtual Method Table (VMT).

Field Documentation

◆ base

cfn_hal_api_base_t cfn_hal_clock_api_s::base

◆ disable_gate

cfn_hal_error_code_t(* cfn_hal_clock_api_s::disable_gate) (cfn_hal_clock_t *driver, uint32_t peripheral_id)

◆ enable_gate

cfn_hal_error_code_t(* cfn_hal_clock_api_s::enable_gate) (cfn_hal_clock_t *driver, uint32_t peripheral_id)

◆ get_peripheral_freq

cfn_hal_error_code_t(* cfn_hal_clock_api_s::get_peripheral_freq) (cfn_hal_clock_t *driver, uint32_t peripheral_id, uint32_t *freq_hz)

◆ get_system_freq

cfn_hal_error_code_t(* cfn_hal_clock_api_s::get_system_freq) (cfn_hal_clock_t *driver, uint32_t *freq_hz)

◆ resume_tick

cfn_hal_error_code_t(* cfn_hal_clock_api_s::resume_tick) (cfn_hal_clock_t *driver)

◆ suspend_tick

cfn_hal_error_code_t(* cfn_hal_clock_api_s::suspend_tick) (cfn_hal_clock_t *driver)

The documentation for this struct was generated from the following file: