[][src]Struct fomu_pac::rgb::RegisterBlock

#[repr(C)]
pub struct RegisterBlock {
    pub dat: DAT,
    pub addr: ADDR,
    pub ctrl: CTRL,
    pub raw: RAW,
    // some fields omitted
}

Register block

Fields

dat: DAT

0x00 - This is the value for the SB_LEDDA_IP.DAT register. It is directly written into the SB_LEDDA_IP hardware block, so you should refer to http://www.latticesemi.com/view_document?document_id=50668. The contents of this register are written to the address specified in ADDR immediately upon writing this register.

addr: ADDR

0x04 - This register is directly connected to SB_LEDDA_IP.ADDR. This register controls the address that is updated whenever DAT is written. Writing to this register has no immediate effect -- data isn't written until the DAT register is written.

ctrl: CTRL

0x08 - Control logic for the RGB LED and LEDDA hardware PWM LED block.

raw: RAW

0x0c - Normally the hardware SB_LEDDA_IP block controls the brightness of the LED, creating a gentle fading pattern. However, by setting the appropriate bit in CTRL, it is possible to manually control the three individual LEDs.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.