STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
|
Mcu Driver Types More...
Go to the source code of this file.
Data Structures | |
struct | _Mcu_PllConfigType |
Pll Config unit structure More... | |
struct | _Mcu_OscConfigType |
Osc Config unit structure More... | |
struct | _Mcu_SysClkConfigType |
Clk Config unit structure More... | |
struct | _Mcu_ClkConfigType |
McuClk Config unit structure More... | |
struct | _Mcu_ConfigType |
Hardware dependent structure More... | |
struct | _Mcu_HwUnit |
Hardware control unit structure More... | |
Typedefs | |
typedef enum _Mcu_PllStatusType | Mcu_PllStatusType |
Status value returned by the function Mcu_GetPllStatus of the MCU module | |
typedef uint32 | Mcu_ClockType |
ID for a clock setting | |
typedef enum _Mcu_ResetType | Mcu_ResetType |
Reset types | |
typedef uint32 | Mcu_RawResetType |
Specifies the reset reason in raw register format read from reset status register | |
typedef uint32 | Mcu_ModeType |
Specifies the identification (ID) for a MCU mode | |
typedef uint32 | Mcu_RamSectionType |
Specifies the identification (ID) for a RAM section | |
typedef enum _Mcu_RamStateType | Mcu_RamStateType |
RAM state (valid or invalid) | |
typedef enum _Mcu_StatusType | Mcu_StatusType |
Hardware unit status datatype | |
typedef struct _Mcu_PllConfigType | Mcu_PllConfigType |
Pll Config unit structure | |
typedef struct _Mcu_OscConfigType | Mcu_OscConfigType |
Osc Config unit structure | |
typedef struct _Mcu_SysClkConfigType | Mcu_SysClkConfigType |
Clk Config unit structure | |
typedef struct _Mcu_ClkConfigType | Mcu_ClkConfigType |
McuClk Config unit structure | |
typedef struct _Mcu_ConfigType | Mcu_ConfigType |
Hardware dependent structure | |
typedef struct _Mcu_HwUnit | Mcu_HwUnit |
Hardware control unit structure | |
Enumerations | |
enum | _Mcu_PllStatusType { MCU_PLL_LOCKED = 0x00 , MCU_PLL_UNLOCKED , MCU_PLL_STATUS_UNDEFINED } |
Status value returned by the function Mcu_GetPllStatus of the MCU module More... | |
enum | _Mcu_ResetType { MCU_POWER_ON_RESET = 0x00 , MCU_WATCHDOG_RESET , MCU_SW_RESET , MCU_RESET_UNDEFINED } |
Reset types More... | |
enum | _Mcu_RamStateType { MCU_RAMSTATE_INVALID = 0x00 , MCU_RAMSTATE_VALID } |
RAM state (valid or invalid) More... | |
enum | _Mcu_StatusType { MCU_STATE_UNINIT = 0x00 , MCU_STATE_INIT } |
Hardware unit status datatype More... | |
Mcu Driver Types
This header file contains type definitions used by Mcu module. The file is implemnted as a means of abstraction from the hardware, this way we can avoid to include Arch headers in the actual driver header, making the low level interfaces available for upper layers.
typedef struct _Mcu_ClkConfigType Mcu_ClkConfigType |
McuClk Config unit structure
This structure contains general Clock configuration parameters
typedef uint32 Mcu_ClockType |
ID for a clock setting
The range is dependent on the number of different clock settings provided in the configuration structure
typedef struct _Mcu_ConfigType Mcu_ConfigType |
Hardware dependent structure
A pointer to this type is provided to MCU initialization routines for configuration
typedef struct _Mcu_HwUnit Mcu_HwUnit |
Hardware control unit structure
This structure contains the hardware unit configuration and the state of the hardware unit pointers to controller structures.
typedef uint32 Mcu_ModeType |
Specifies the identification (ID) for a MCU mode
typedef struct _Mcu_OscConfigType Mcu_OscConfigType |
Osc Config unit structure
This structure contains Oscillators configuration parameters
typedef struct _Mcu_PllConfigType Mcu_PllConfigType |
Pll Config unit structure
This structure contains Pll configuration parameters
typedef enum _Mcu_PllStatusType Mcu_PllStatusType |
Status value returned by the function Mcu_GetPllStatus of the MCU module
typedef uint32 Mcu_RamSectionType |
Specifies the identification (ID) for a RAM section
typedef enum _Mcu_RamStateType Mcu_RamStateType |
RAM state (valid or invalid)
Ram State data type returned by the function Mcu_GetRamState of the Mcu module
typedef uint32 Mcu_RawResetType |
Specifies the reset reason in raw register format read from reset status register
typedef enum _Mcu_ResetType Mcu_ResetType |
Reset types
typedef enum _Mcu_StatusType Mcu_StatusType |
Hardware unit status datatype
Data type which describes the status of MCU Module (initialized or not-initialized)
typedef struct _Mcu_SysClkConfigType Mcu_SysClkConfigType |
Clk Config unit structure
This structure contains System Clock configuration parameters
enum _Mcu_PllStatusType |
Status value returned by the function Mcu_GetPllStatus of the MCU module
Enumerator | |
---|---|
MCU_PLL_LOCKED | The PLL is locked |
MCU_PLL_UNLOCKED | The PLL is unlocked |
MCU_PLL_STATUS_UNDEFINED | The PLL Status is unknown |
enum _Mcu_RamStateType |
RAM state (valid or invalid)
Ram State data type returned by the function Mcu_GetRamState of the Mcu module
Enumerator | |
---|---|
MCU_RAMSTATE_INVALID | Ram content is not valid or unknown |
MCU_RAMSTATE_VALID | Ram content is valid |
enum _Mcu_ResetType |
Reset types
Enumerator | |
---|---|
MCU_POWER_ON_RESET | Power On Reset |
MCU_WATCHDOG_RESET | Internal Watchdog Timer Reset |
MCU_SW_RESET | Software Reset |
MCU_RESET_UNDEFINED | Reset is undefined |
enum _Mcu_StatusType |