Struct is31fl3205::Message
source · [−]pub struct Message { /* private fields */ }
Expand description
Each of the IS31FL3205 messages are defined by the Message struct. These provide an interface to the transferred data to modify or read registers of the IS31FL3205
Implementations
sourceimpl Message
impl Message
TODO: Add support for advanced features:
- phase delay & clock phase
- spread spectrum for EMI reduction techniques
- open / short functionality and detection
- temperature detection
sourcepub fn power_control(
osc: OscillatorClock,
pms: PwmResolution,
ssd: SoftwareShutdownMode
) -> Self
pub fn power_control(
osc: OscillatorClock,
pms: PwmResolution,
ssd: SoftwareShutdownMode
) -> Self
Defines a power control message for initialising oscillator clock, pwm resolution and device enable / disable
sourcepub fn pulse_width_modulation(channel: u8, value: u16) -> Self
pub fn pulse_width_modulation(channel: u8, value: u16) -> Self
Defines a pulse width modulation message for setting the illuminosity of a given channel For example, setting channel 0 to 0xFF will set it to the brightest value in 8bit mode The “Update” message must be sent to see the effect of modifications to the Pwm register
sourcepub fn update() -> Self
pub fn update() -> Self
Update all PWM registers with the loaded values Must be called after setitng the Pulse Width Modulation register
sourcepub fn global_current_control(value: u8) -> Self
pub fn global_current_control(value: u8) -> Self
Adjust the global current usage of the device, see manual for detail about current usage
sourcepub fn led_scaling(channel: u8, value: u8) -> Self
pub fn led_scaling(channel: u8, value: u8) -> Self
Adjust individual LED current usage, see manual for detail about current usage
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more