HAL TAMP Enumerations

HAL TAMP Enumerations

group TAMP_Exported_Enums

Enums

enum hal_tamp_priv_attr_t

HAL TAMP Privilege attribute enumeration definition

Values:

enumerator HAL_TAMP_NPRIV

Non-privileged attribute TAMP Non-privileged attribute

enumerator HAL_TAMP_PRIV

Privileged attribute TAMP privileged attribute

HAL TAMP passive tamper enumerations

group TAMP_Exported_Enums_Passive

Enums

enum hal_tamp_passive_trigger_t

Passive tampers detection of edge level definition.

Values:

enumerator HAL_TAMP_PASSIVE_TRIGGER_RISING

Rising edge triggers a tamper detection

enumerator HAL_TAMP_PASSIVE_TRIGGER_FALLING

0x01000000 Active level for tamper 1 input Tamper 1 input falling edge (if TAMPFLT = 00) or staying high (if TAMPFLT != 00) triggers a tamper detection event Falling edge triggers a tamper detection

enumerator HAL_TAMP_PASSIVE_TRIGGER_LOW

Low level triggers a tamper detection

enumerator HAL_TAMP_PASSIVE_TRIGGER_HIGH

0x01000000 Active level for tamper 1 input Tamper 1 input falling edge (if TAMPFLT = 00) or staying high (if TAMPFLT != 00) triggers a tamper detection event High level triggers a tamper detection

enum hal_tamp_passive_secrets_erase_t

Passive tampers erase mode definitions.

Values:

enumerator HAL_TAMP_PASSIVE_SECRETS_ERASE

Confirmed mode: device secrets are erased when a tamper is detected

enumerator HAL_TAMP_PASSIVE_SECRETS_NO_ERASE

0x00000001 Tamper 1 potential mode Tamper 1 event does not erase the backup registers. Potential mode: some device secrets are not erased but blocked when a tamper is detected

enum hal_tamp_passive_mask_t

Passive tampers masked definition.

Values:

enumerator HAL_TAMP_PASSIVE_UNMASKED

Tampers are not masked and behave as expected

enumerator HAL_TAMP_PASSIVE_MASKED

0x00010000 Tamper 1 mask Tamper 1 event generates a trigger event. TAMP1F is masked and internally cleared by hardware. The backup registers are not erased Tampers are masked: a tamper detection does not trigger

enum hal_tamp_passive_pull_up_precharge_state_t

Passive tampers pull-up (precharge) definition.

Values:

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_DISABLE

0x00000080 TAMP_INx pull-up disable Disable precharge of TAMP_INx pins Disable tamper pull-up (precharge)

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_ENABLE

Precharge TAMP_INx pins before sampling (enable internal pull-up) Enable tamper pull-up (precharge)

enum hal_tamp_passive_pull_up_precharge_duration_t

Passive tampers pull-up precharge duration definition.

Values:

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_1_RTCCLK

Tamper pins are pre-charged before sampling during 1 RTCCLK cycle Tamper pins are precharged before sampling during 1 RTCCLK cycle

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_2_RTCCLK

0x00000020 Tamper pins are pre-charged before sampling during 2 RTCCLK cycles Tamper pins are precharged before sampling during 2 RTCCLK cycle

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_4_RTCCLK

0x00000040 Tamper pins are pre-charged before sampling during 4 RTCCLK cycles Tamper pins are precharged before sampling during 4 RTCCLK cycle

enumerator HAL_TAMP_PASSIVE_PULL_UP_PRECHARGE_8_RTCCLK

0x00000060 TAMP_INx precharge duration Tamper pins are pre-charged before sampling during 8 RTCCLK cycles Tamper pins are precharged before sampling during 8 RTCCLK cycle

enum hal_tamp_passive_filter_t

Passive tampers filter activation definition.

Values:

enumerator HAL_TAMP_PASSIVE_FILTER_DISABLE

Tamper filter is disabled Tamper filter is disabled

enumerator HAL_TAMP_PASSIVE_FILTER_2_SAMPLES

0x00000008 Tamper is activated after 2 consecutive samples at the active level Tamper is activated after 2 consecutive samples at the active level

enumerator HAL_TAMP_PASSIVE_FILTER_4_SAMPLES

0x00000010 Tamper is activated after 4 consecutive samples at the active level Tamper is activated after 4 consecutive samples at the active level

enumerator HAL_TAMP_PASSIVE_FILTER_8_SAMPLES

0x00000018 TAMP_INx filter count Tamper is activated after 8 consecutive samples at the active level. Tamper is activated after 8 consecutive samples at the active level

enum hal_tamp_passive_sample_frequency_t

Passive tampers sampling frequency definitions.

Values:

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_256

0x00000007 Tamper sampling frequency Each of the tamper inputs is sampled with a frequency = RTCCLK / 256 Tampers pins are sampled at (RTCCLK / 256) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_512

Each of the tamper inputs is sampled with a frequency = RTCCLK / 512 Tampers pins are sampled at (RTCCLK / 512) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_1024

Each of the tamper inputs is sampled with a frequency = RTCCLK / 1024 Tampers pins are sampled at (RTCCLK / 1024) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_2048

0x00000004 Each of the tamper inputs is sampled with a frequency = RTCCLK / 2048 Tampers pins are sampled at (RTCCLK / 2048) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_4096

Each of the tamper inputs is sampled with a frequency = RTCCLK / 4096 Tampers pins are sampled at (RTCCLK / 4096) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_8192

0x00000002 Each of the tamper inputs is sampled with a frequency = RTCCLK / 8192 Tampers pins are sampled at (RTCCLK / 8192) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_16384

0x00000001 Each of the tamper inputs is sampled with a frequency = RTCCLK / 16384 Tampers pins are sampled at (RTCCLK / 16384) Hz

enumerator HAL_TAMP_PASSIVE_SAMPLE_FREQ_DIV_32768

Each of the tamper inputs is sampled with a frequency = RTCCLK / 32768 Tampers pins are sampled at (RTCCLK / 32768) Hz

HAL TAMP internal tampers enumerations

group TAMP_Exported_Enums_Internal

Enums

enum hal_tamp_internal_secrets_erase_t

Internal tampers erase mode definitions.

Values:

enumerator HAL_TAMP_INTERNAL_SECRETS_ERASE

Confirmed mode: device secrets are erased when a tamper is detected

enumerator HAL_TAMP_INTERNAL_SECRETS_NO_ERASE

0x00000004 Internal tamper 3 potential mode Internal tamper 3 potential mode Potential mode: some device secrets are not erased but blocked when a tamper is detected

HAL TAMP secrets enumerations

group TAMP_Exported_Enums_Device_Secrets

Enums

enum hal_tamp_secrets_status_t

Device secrets access status definitions.

Values:

enumerator HAL_TAMP_SECRETS_ACCESS_UNBLOCKED

Device secrets can be accessed if no tamper flag is set.

enumerator HAL_TAMP_SECRETS_ACCESS_BLOCKED

Device secrets cannot be accessed.

HAL TAMP remap enumerations

group TAMP_Exported_Enums_Remap

Enums

enum hal_tamp_remap_status_t

Remap tamp pin status definitions.

Values:

enumerator HAL_TAMP_REMAP_TAMP_PIN_DISABLED

Remap is disabled.

enumerator HAL_TAMP_REMAP_TAMP_PIN_ENABLED

Remap is enabled.