[][src]Module msp430fr2x5x_hal::capture

Capture ports

Configures the board's TimerB peripherals into capture pins. Each capture pin has a 16-bit capture register where its timer value is written whenever its capture event is triggered.

Due to hardware constraints, the configurations for all capture pins derived from a timer must be decided before any of them can be used. This differs from Pwm, where pins are initialized on an individual basis.

Re-exports

pub use crate::timer::CapCmp;
pub use crate::timer::TimerConfig;
pub use crate::timer::TimerPeriph;

Structs

CCR0

Label for capture-compare register 0

CCR1

Label for capture-compare register 1

CCR2

Label for capture-compare register 2

CCR3

Label for capture-compare register 3

CCR4

Label for capture-compare register 4

CCR5

Label for capture-compare register 5

CCR6

Label for capture-compare register 6

Capture

Single capture pin with its own capture register

CaptureConfig3

Builder object for configuring capture ports derived from timer peripherals with 3 capture-compare registers

CaptureConfig7

Builder object for configuring capture ports derived from timer peripherals with 7 capture-compare registers

CaptureParts3

Collection of capture pins derived from timer peripheral with 3 capture-compare registers

CaptureParts7

Collection of capture pins derived from timer peripheral with 7 capture-compare registers

InterruptCapture

Token returned when reading the interrupt vector that allows a one-time read of the capture register corresponding to the interrupt.

OverCapture

Error returned when the previous capture was overwritten before being read

TBxIV

Interrupt vector register for determining which capture-register caused an ISR

Enums

CapTrigger

Capture edge trigger

CaptureVector

Capture TBIV interrupt vector

TimerDiv

Timer clock divider

TimerExDiv

Timer expansion clock divider, applied on top of the normal clock divider

Traits

CapturePeriph

Extension trait for creating capture pins from timer peripherals

CapturePin

Single input capture pin