class OcpReg
Defined at line 666 of file ../../src/devices/power/drivers/fusb302/registers.h
OCPREG - Configures the VCONN OCP (Overcurrent Protection) circuit threshold.
This register has reserved/undocumented bits. It can only be safely updated
via read/modify/write operations.
After reset, the VCONN OCP threshold is 800 mA.
Rev 5 datasheet: Table 29 on page 24
Public Members
field_ocp_range_669
field_ocp_cur_672
Public Methods
template <, >
typename SelfType::ValueType ocp_range ()
If true, the threshold baseline is 100 mA. If false, the baseline is 10 mA.
Defined at line 669 of file ../../src/devices/power/drivers/fusb302/registers.h
template <, >
SelfType & set_ocp_range (typename SelfType::ValueType val)
If true, the threshold baseline is 100 mA. If false, the baseline is 10 mA.
Defined at line 669 of file ../../src/devices/power/drivers/fusb302/registers.h
template <, >
typename SelfType::ValueType ocp_cur ()
Multiplies the threshold baseline by a number between 1 and 8.
Defined at line 672 of file ../../src/devices/power/drivers/fusb302/registers.h
template <, >
SelfType & set_ocp_cur (typename SelfType::ValueType val)
Multiplies the threshold baseline by a number between 1 and 8.
Defined at line 672 of file ../../src/devices/power/drivers/fusb302/registers.h
hwreg::I2cRegisterAddr<OcpReg> Get ()
Defined at line 680 of file ../../src/devices/power/drivers/fusb302/registers.h
int16_t ThresholdMilliamps ()
The OCP (Overcurrent Protection) circuit threshold, in mA.
Defined at line 1354 of file ../../src/devices/power/drivers/fusb302/registers.h
OcpReg & SetThresholdMilliamps (int16_t threshold_ma)
Sets the OCP (Overcurrent Protection) circuit threshold, in mA.
Defined at line 1366 of file ../../src/devices/power/drivers/fusb302/registers.h