![]() |
Synergy Software Package User's Manual
|
#include <r_wdt_api.h>
Data Fields | |
| ssp_err_t(* | cfgGet )(wdt_ctrl_t *const p_ctrl, wdt_cfg_t *const p_cfg) |
| ssp_err_t(* | open )(wdt_ctrl_t *const p_ctrl, wdt_cfg_t const *const p_cfg) |
| ssp_err_t(* | refresh )(wdt_ctrl_t *const p_ctrl) |
| ssp_err_t(* | statusGet )(wdt_ctrl_t *const p_ctrl, wdt_status_t *const p_status) |
| ssp_err_t(* | statusClear )(wdt_ctrl_t *const p_ctrl, const wdt_status_t status) |
| ssp_err_t(* | counterGet )(wdt_ctrl_t *const p_ctrl, uint32_t *const p_count) |
| ssp_err_t(* | timeoutGet )(wdt_ctrl_t *const p_ctrl, wdt_timeout_values_t *const p_timeout) |
| ssp_err_t(* | versionGet )(ssp_version_t *const p_data) |
WDT functions implemented at the HAL layer will follow this API.
| ssp_err_t(* wdt_api_t::cfgGet) (wdt_ctrl_t *const p_ctrl, wdt_cfg_t *const p_cfg) |
Initialize the WDT in register start mode. In auto-start mode with NMI output it registers the NMI callback.
| [in] | p_ctrl | Pointer to control structure. |
| [out] | p_cfg | Pointer to pin configuration structure for reading WDT configuration. |
| ssp_err_t(* wdt_api_t::counterGet) (wdt_ctrl_t *const p_ctrl, uint32_t *const p_count) |
Read the current WDT counter value.
| [in] | p_ctrl | Pointer to control structure. |
| [out] | p_count | Pointer to variable to return current WDT counter value. |
| ssp_err_t(* wdt_api_t::open) (wdt_ctrl_t *const p_ctrl, wdt_cfg_t const *const p_cfg) |
Initialize the WDT in register start mode. In auto-start mode with NMI output it registers the NMI callback.
| [in] | p_ctrl | Pointer to control structure. |
| [in] | p_cfg | Pointer to pin configuration structure. |
| ssp_err_t(* wdt_api_t::refresh) (wdt_ctrl_t *const p_ctrl) |
Refresh the watchdog timer.
| [in] | p_ctrl | Pointer to control structure. |
| ssp_err_t(* wdt_api_t::statusClear) (wdt_ctrl_t *const p_ctrl, const wdt_status_t status) |
Clear the status flags of the WDT.
| [in] | p_ctrl | Pointer to control structure. |
| [in] | status | Status condition(s) to clear. |
| ssp_err_t(* wdt_api_t::statusGet) (wdt_ctrl_t *const p_ctrl, wdt_status_t *const p_status) |
Read the status of the WDT.
| [in] | p_ctrl | Pointer to control structure. |
| [out] | p_status | Pointer to variable to return status information through. |
| ssp_err_t(* wdt_api_t::timeoutGet) (wdt_ctrl_t *const p_ctrl, wdt_timeout_values_t *const p_timeout) |
Read the watchdog timeout values.
| [in] | p_ctrl | Pointer to control structure. |
| [out] | p_timeout | Pointer to structure to return timeout values. |
| ssp_err_t(* wdt_api_t::versionGet) (ssp_version_t *const p_data) |
Return the version of the IOPort driver.
| [in] | p_ctrl | Pointer to control structure. |
| [out] | p_data | Memory address to return version information to. |