TAMPER driver APIs. More...
Data Structures | |
| struct | tamper_ch_config_t |
Functions | |
| void | tamp_init_ch_config (TAMP_Type *ptr, uint8_t ch, tamper_ch_config_t *config) |
| Init tamper channel config. More... | |
| void | tamp_get_default_ch_config (TAMP_Type *ptr, tamper_ch_config_t *config) |
| Get tamper default channel config. More... | |
| static void | tamp_set_ch_enable (TAMP_Type *ptr, uint8_t ch, bool enable) |
| Set tamper channel enable or disable. More... | |
| static void | tamp_set_ch_config_lock (TAMP_Type *ptr, uint8_t ch, bool lock) |
| Set tamper channel config lock or unlock. More... | |
| static uint32_t | tamp_get_flags (TAMP_Type *ptr) |
| Get tamper all channel flags. More... | |
| static void | tamp_clear_flags (TAMP_Type *ptr, uint32_t flags) |
| Clear tamper flags. More... | |
| static bool | tamp_check_ch_flag (TAMP_Type *ptr, uint8_t ch) |
| Check tamper channel flag. More... | |
| static void | tamp_clear_ch_flag (TAMP_Type *ptr, uint8_t ch) |
| Clear tamper channel flag. More... | |
| static void | tamp_enable_ch_irq (TAMP_Type *ptr, uint8_t ch, bool enable) |
| Set tamper channel irq enable or disable. More... | |
| static void | tamp_set_irq_lock (TAMP_Type *ptr, bool lock) |
| Set tamper irq lock or unlock. More... | |
TAMPER driver APIs.
| enum tamper_filter_len_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
| enum tamper_speed_t |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Check tamper channel flag.
| [in] | ptr | TAMPER base address |
| [in] | ch | tamper channel |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Clear tamper channel flag.
| [in] | ptr | TAMPER base address |
| [in] | ch | tamper channel |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Clear tamper flags.
| [in] | ptr | tamper base address |
| [in] | flags | clear channel flags |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Set tamper channel irq enable or disable.
| [in] | ptr | TAMPER base address |
| [in] | ch | tamper channel |
| [in] | enable | true - irq enable, false - irq disable |
| void tamp_get_default_ch_config | ( | TAMP_Type * | ptr, |
| tamper_ch_config_t * | config | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Get tamper default channel config.
| [in] | ptr | tamper base address |
| [in] | config | tamper default channel config struct pointer |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Get tamper all channel flags.
| [in] | ptr | tamper base address |
| void tamp_init_ch_config | ( | TAMP_Type * | ptr, |
| uint8_t | ch, | ||
| tamper_ch_config_t * | config | ||
| ) |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Init tamper channel config.
| [in] | ptr | tamper base address |
| [in] | ch | tamper channel |
| [in] | config | tamper channel config struct pointer |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Set tamper channel config lock or unlock.
| [in] | ptr | tamper base address |
| [in] | ch | tamper channel |
| [in] | lock | true - config lock, false - config unlock |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Set tamper channel enable or disable.
| [in] | ptr | tamper base address |
| [in] | ch | tamper channel |
| [in] | enable | true - enable tamper, false - disable tamper |
|
inlinestatic |
#include </home/docs/checkouts/readthedocs.org/user_builds/hpm-sdk/checkouts/latest/drivers/inc/hpm_tamp_drv.h>
Set tamper irq lock or unlock.
| [in] | ptr | tamper base address |
| [in] | lock | true - irq lock, false - irq unlock |