[−][src]Struct fomu_pac::rgb::RegisterBlock
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,