Add documentation

This commit is contained in:
Dylan McKay 2017-12-17 13:19:14 +13:00
parent 61c62ad0ed
commit 2b58e36065
1 changed files with 7 additions and 0 deletions

View File

@ -36,14 +36,21 @@ pub trait Timer8 : Sized {
/// For example, TIFR0.
type InterruptFlag: Register<T=u8>;
/// Bit 0 of the clock select mask.
const CS0: Mask<Self::ControlB>;
/// Bit 1 of the clock select mask.
const CS1: Mask<Self::ControlB>;
/// Bit 2 of the clock select mask.
const CS2: Mask<Self::ControlB>;
/// Bit 0 of the waveform generation mode mask.
const WGM0: Mask<Self::ControlA>;
/// Bit 1 of the waveform generation mode mask.
const WGM1: Mask<Self::ControlA>;
/// Bit 2 of the waveform generation mode mask.
const WGM2: Mask<Self::ControlB>;
/// Output compare interrupt enable flag.
const OCIEA: Mask<Self::InterruptMask>;
}