Struct cortex_m::peripheral::SYST [] [src]

#[repr(C)]
pub struct SYST { pub csr: RW<u32>, pub rvr: RW<u32>, pub cvr: RW<u32>, pub calib: RO<u32>, }

SysTick register block

Fields

Control and Status

Reload Value

Current Value

Calibration Value

Methods

impl SYST
[src]

[src]

Checks if counter is enabled

[src]

Enables counter

[src]

Disables counter

[src]

Checks if SysTick interrupt is enabled

[src]

Enables SysTick interrupt

[src]

Disables SysTick interrupt

[src]

Gets clock source

[src]

Sets clock source

[src]

Checks if the counter wrapped (underflowed) since the last check

[src]

Gets reload value

[src]

Sets reload value

Valid values are between 1 and 0x00ffffff.

[src]

Gets current value

[src]

Clears current value to 0

After calling clear_current(), the next call to has_wrapped() will return false.

[src]

Returns the reload value with which the counter would wrap once per 10 ms

Returns 0 if the value is not known (e.g. because the clock can change dynamically).

[src]

Checks if the calibration value is precise

Returns false if using the reload value returned by get_ticks_per_10ms() may result in a period significantly deviating from 10 ms.

[src]

Checks if an external reference clock is available