Callisto4Bootloader: drivers/fsl_rtwdog.h File Reference

Callisto4Bootloader

Data Structures | Typedefs | Enumerations
fsl_rtwdog.h File Reference
`#include "fsl_common.h"`

Go to the source code of this file.

## Data Structures

struct | _rtwdog_work_mode
| Defines RTWDOG work mode. More...
struct | _rtwdog_config
| Describes RTWDOG configuration structure. More...

## Macros

Unlock sequence
#define | WDOG_FIRST_WORD_OF_UNLOCK (RTWDOG_UPDATE_KEY & 0xFFFFU)
#define | WDOG_SECOND_WORD_OF_UNLOCK ((RTWDOG_UPDATE_KEY >> 16U) & 0xFFFFU)
Refresh sequence
#define | WDOG_FIRST_WORD_OF_REFRESH (RTWDOG_REFRESH_KEY & 0xFFFFU)
#define | WDOG_SECOND_WORD_OF_REFRESH ((RTWDOG_REFRESH_KEY >> 16U) & 0xFFFFU)
Driver version
#define | FSL_RTWDOG_DRIVER_VERSION (MAKE_VERSION(2, 0, 0))
| RTWDOG driver version 2.0.0. More...

## Typedefs

typedef enum _rtwdog_clock_source | rtwdog_clock_source_t
| Describes RTWDOG clock source. More...
typedef enum _rtwdog_clock_prescaler | rtwdog_clock_prescaler_t
| Describes the selection of the clock prescaler. More...
typedef struct _rtwdog_work_mode | rtwdog_work_mode_t
| Defines RTWDOG work mode. More...
typedef enum _rtwdog_test_mode | rtwdog_test_mode_t
| Describes RTWDOG test mode. More...
typedef struct _rtwdog_config | rtwdog_config_t
| Describes RTWDOG configuration structure. More...

## Enumerations

enum | _rtwdog_clock_source { kRTWDOG_ClockSource0 = 0U, kRTWDOG_ClockSource1 = 1U, kRTWDOG_ClockSource2 = 2U, kRTWDOG_ClockSource3 = 3U }
| Describes RTWDOG clock source. More...
enum | _rtwdog_clock_prescaler { kRTWDOG_ClockPrescalerDivide1 = 0x0U, kRTWDOG_ClockPrescalerDivide256 = 0x1U }
| Describes the selection of the clock prescaler. More...
enum | _rtwdog_test_mode { kRTWDOG_TestModeDisabled = 0U, kRTWDOG_UserModeEnabled = 1U, kRTWDOG_LowByteTest = 2U, kRTWDOG_HighByteTest = 3U }
| Describes RTWDOG test mode. More...
enum | _rtwdog_interrupt_enable_t { kRTWDOG_InterruptEnable = RTWDOG_CS_INT_MASK }
| RTWDOG interrupt configuration structure. More...
enum | _rtwdog_status_flags_t { kRTWDOG_RunningFlag = RTWDOG_CS_EN_MASK, kRTWDOG_InterruptFlag = RTWDOG_CS_FLG_MASK }
| RTWDOG status flags. More...

## Functions

RTWDOG Initialization and De-initialization
void | RTWDOG_GetDefaultConfig (rtwdog_config_t *config)
| Initializes the RTWDOG configuration structure. More...
void | RTWDOG_Init (RTWDOG_Type *base, const rtwdog_config_t *config)
| Initializes the RTWDOG module. More...
void | RTWDOG_Deinit (RTWDOG_Type *base)
| De-initializes the RTWDOG module. More...
RTWDOG functional Operation
static void | RTWDOG_Enable (RTWDOG_Type *base)
| Enables the RTWDOG module. More...
static void | RTWDOG_Disable (RTWDOG_Type *base)
| Disables the RTWDOG module. More...
static void | RTWDOG_EnableInterrupts (RTWDOG_Type *base, uint32_t mask)
| Enables the RTWDOG interrupt. More...
static void | RTWDOG_DisableInterrupts (RTWDOG_Type *base, uint32_t mask)
| Disables the RTWDOG interrupt. More...
static uint32_t | RTWDOG_GetStatusFlags (RTWDOG_Type *base)
| Gets the RTWDOG all status flags. More...
void | RTWDOG_ClearStatusFlags (RTWDOG_Type *base, uint32_t mask)
| Clears the RTWDOG flag. More...
static void | RTWDOG_SetTimeoutValue (RTWDOG_Type *base, uint16_t timeoutCount)
| Sets the RTWDOG timeout value. More...
static void | RTWDOG_SetWindowValue (RTWDOG_Type *base, uint16_t windowValue)
| Sets the RTWDOG window value. More...
static void | RTWDOG_Unlock (RTWDOG_Type *base)
| Unlocks the RTWDOG register written. More...
static void | RTWDOG_Refresh (RTWDOG_Type *base)
| Refreshes the RTWDOG timer. More...
static uint16_t | RTWDOG_GetCounterValue (RTWDOG_Type *base)
| Gets the RTWDOG counter value. More...