Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

 

HAL WWDG Generic Driver

Function Description

Returns the WWDG state.

Parameters

 

hwwdg: pointer to a WWDG_HandleTypeDef structure that

 

 

contains the configuration information for the specified

 

 

WWDG module.

Return values

 

HAL state

62.3WWDG Firmware driver defines

62.3.1WWDG

WWDG BitAddress

WWDG_CFR_BASE

WWDG Exported Macros

__HAL_WWDG_RESET_HANDLE_STATE Description:

Reset WWDG handle state.

Parameters:

__HANDLE__: WWDG handle

Return value:

 

 

None

__HAL_WWDG_ENABLE

Description:

 

Enables the WWDG peripheral.

 

Parameters:

 

 

__HANDLE__: WWDG handle

 

Return value:

 

 

None

__HAL_WWDG_DISABLE

Description:

 

Disables the WWDG peripheral.

 

Parameters:

 

 

__HANDLE__: WWDG handle

 

Return value:

 

 

None

 

Notes:

 

WARNING: This is a dummy macro for

 

 

HAL code alignment. Once enable,

 

 

WWDG Peripheral cannot be disabled

 

 

except by a system reset.

__HAL_WWDG_GET_IT

Description:

 

Gets the selected WWDG's it status.

 

Parameters:

 

 

__HANDLE__: WWDG handle

 

DOCID025834 Rev 2

891/900

HAL WWDG Generic Driver

UM1725

 

__INTERRUPT__: specifies the it to

 

check. This parameter can be one of the

 

following values:

 

WWDG_FLAG_EWIF: Early

 

wakeup interrupt IT

 

 

Return value:

 

 

The: new state of WWDG_FLAG (SET

 

 

 

or RESET).

 

__HAL_WWDG_CLEAR_IT

Description:

 

 

Clear the WWDG's interrupt pending

 

 

 

bits bits to clear the selected interrupt

 

 

 

pending bits.

 

 

Parameters:

 

 

 

__HANDLE__: WWDG handle

 

 

 

__INTERRUPT__: specifies the

 

 

 

interrupt pending bit to clear. This

 

 

 

parameter can be one of the following

 

 

 

values:

 

 

 

WWDG_FLAG_EWIF: Early

 

 

 

wakeup interrupt flag

 

__HAL_WWDG_ENABLE_IT

Description:

 

 

Enables the WWDG early wakeup

 

 

 

interrupt.

 

 

Parameters:

 

 

 

__HANDLE__: WWDG handle

 

 

 

__INTERRUPT__: specifies the

 

 

 

interrupt to enable. This parameter can

 

 

 

be one of the following values:

 

 

 

WWDG_IT_EWI: Early wakeup

 

 

 

interrupt

 

 

Return value:

 

 

 

None

 

 

Notes:

 

 

Once enabled this interrupt cannot be

 

 

 

disabled except by a system reset.

 

__HAL_WWDG_DISABLE_IT

Description:

 

 

Disables the WWDG early wakeup

 

 

 

interrupt.

 

 

Parameters:

 

 

 

__HANDLE__: WWDG handle

 

 

 

__INTERRUPT__: specifies the

 

 

 

interrupt to disable. This parameter can

 

 

 

be one of the following values:

 

 

 

WWDG_IT_EWI: Early wakeup

 

 

 

interrupt

892/900

DOCID025834 Rev 2

 

UM1725

 

HAL WWDG Generic Driver

 

Return value:

 

 

None

 

Notes:

 

WARNING: This is a dummy macro for

 

 

HAL code alignment. Once enabled this

 

 

interrupt cannot be disabled except by a

 

 

system reset.

__HAL_WWDG_GET_FLAG

Description:

 

Gets the selected WWDG's flag status.

 

Parameters:

 

 

__HANDLE__: WWDG handle

 

__FLAG__: specifies the flag to check.

 

 

This parameter can be one of the

 

 

following values:

 

 

WWDG_FLAG_EWIF: Early

 

 

wakeup interrupt flag

 

Return value:

 

The: new state of WWDG_FLAG (SET

 

 

or RESET).

__HAL_WWDG_CLEAR_FLAG

Description:

 

Clears the WWDG's pending flags.

 

Parameters:

 

 

__HANDLE__: WWDG handle

 

__FLAG__: specifies the flag to clear.

 

 

This parameter can be one of the

 

 

following values:

 

 

WWDG_FLAG_EWIF: Early

 

 

wakeup interrupt flag

 

Return value:

 

 

None

__HAL_WWDG_GET_IT_SOURCE

Description:

 

Checks if the specified WWDG interrupt

 

 

source is enabled or disabled.

 

Parameters:

 

 

__HANDLE__: WWDG Handle.

 

__INTERRUPT__: specifies the WWDG

 

 

interrupt source to check. This

 

 

parameter can be one of the following

 

 

values:

 

 

WWDG_IT_EWI: Early Wakeup

 

 

Interrupt

 

Return value:

 

state: of __INTERRUPT__ (TRUE or

DOCID025834 Rev 2

893/900

HAL WWDG Generic Driver

UM1725

 

FALSE).

WWDG Flag definition

 

WWDG_FLAG_EWIF

Early wakeup interrupt flag

WWDG Interrupt definition

WWDG_IT_EWI

Early wakeup interrupt

WWDG Prescaler

WWDG_PRESCALER_1 WWDG_PRESCALER_2 WWDG_PRESCALER_4 WWDG_PRESCALER_8

WWDG counter clock = (PCLK1/4096)/1 WWDG counter clock = (PCLK1/4096)/2 WWDG counter clock = (PCLK1/4096)/4 WWDG counter clock = (PCLK1/4096)/8

WWDG Private Macros

IS_WWDG_PRESCALER

IS_WWDG_WINDOW

IS_WWDG_COUNTER

894/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]