[][src]Module fomu_pac::rgb

RGB

Modules

addr

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

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

dat

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.

raw

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.

Structs

RegisterBlock

Register block

Type Definitions

ADDR

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

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

DAT

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.

RAW

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.