emc230x 0.3.0

An async driver for the EMC230x family of fan controllers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::RegisterOffset;
use emc230x_macros::RegisterOffset;

bitfield::bitfield! {
    #[derive(Clone, Copy, RegisterOffset)]
    #[register(offset = 0x01, default = 0x01)]
    pub struct PwmDivide(u8);
    impl Debug;

    /// PWM Divide
    ///
    /// The final drive frequency is divided by the value of this register. The
    /// duty cycle is not affected by this setting. A value of 0x00 will be
    /// interpreted as 0x01.
    pub pwm_divide, set_pwm_divide: 7, 0;
}