[][src]Module betrusted_pac::timer0

TIMER0

Modules

en

Enable flag of the Timer. Set this flag to 1 to enable/start the Timer. Set to 0 to disable the Timer.

ev_enable
ev_pending
ev_status
load0

Bits 0-7 of TIMER0_LOAD.

load1

Bits 8-15 of TIMER0_LOAD.

load2

Bits 16-23 of TIMER0_LOAD.

load3

Bits 24-31 of TIMER0_LOAD. Load value when Timer is (re-)enabled. In One-Shot mode, the value written to this register specifies the Timer's duration in clock cycles.

reload0

Bits 0-7 of TIMER0_RELOAD.

reload1

Bits 8-15 of TIMER0_RELOAD.

reload2

Bits 16-23 of TIMER0_RELOAD.

reload3

Bits 24-31 of TIMER0_RELOAD. Reload value when Timer reaches 0. In Periodic mode, the value written to this register specify the Timer's period in clock cycles.

update_value

Update trigger for the current countdown value. A write to this register latches the current countdown value to value register.

value0

Bits 0-7 of TIMER0_VALUE.

value1

Bits 8-15 of TIMER0_VALUE.

value2

Bits 16-23 of TIMER0_VALUE.

value3

Bits 24-31 of TIMER0_VALUE. Latched countdown value. This value is updated by writing to update_value.

Structs

RegisterBlock

Register block

Type Definitions

EN

Enable flag of the Timer. Set this flag to 1 to enable/start the Timer. Set to 0 to disable the Timer.

EV_ENABLE

This register you can read, reset, write, write_with_zero, modify. See API.

EV_PENDING

This register you can read, reset, write, write_with_zero, modify. See API.

EV_STATUS

This register you can read, reset, write, write_with_zero, modify. See API.

LOAD0

Bits 0-7 of TIMER0_LOAD.

LOAD1

Bits 8-15 of TIMER0_LOAD.

LOAD2

Bits 16-23 of TIMER0_LOAD.

LOAD3

Bits 24-31 of TIMER0_LOAD. Load value when Timer is (re-)enabled. In One-Shot mode, the value written to this register specifies the Timer's duration in clock cycles.

RELOAD0

Bits 0-7 of TIMER0_RELOAD.

RELOAD1

Bits 8-15 of TIMER0_RELOAD.

RELOAD2

Bits 16-23 of TIMER0_RELOAD.

RELOAD3

Bits 24-31 of TIMER0_RELOAD. Reload value when Timer reaches 0. In Periodic mode, the value written to this register specify the Timer's period in clock cycles.

UPDATE_VALUE

Update trigger for the current countdown value. A write to this register latches the current countdown value to value register.

VALUE0

Bits 0-7 of TIMER0_VALUE.

VALUE1

Bits 8-15 of TIMER0_VALUE.

VALUE2

Bits 16-23 of TIMER0_VALUE.

VALUE3

Bits 24-31 of TIMER0_VALUE. Latched countdown value. This value is updated by writing to update_value.