[][src]Struct imxrt1062_usb_analog::R

pub struct R<U, T> { /* fields omitted */ }

Register/field reader

Result of the read method of a register. Also it can be used in the modify method

Methods

impl<U, T> R<U, T> where
    U: Copy
[src]

pub fn bits(&self) -> U[src]

Read raw bits from register/field

impl<FI> R<bool, FI>[src]

pub fn bit(&self) -> bool[src]

Value of the field as raw bits

pub fn bit_is_clear(&self) -> bool[src]

Returns true if the bit is clear (0)

pub fn bit_is_set(&self) -> bool[src]

Returns true if the bit is set (1)

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB1_VBUS_DETECT>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB1_VBUS_DETECT_SET>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB1_VBUS_DETECT_CLR>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB1_VBUS_DETECT_TOG>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB1_CHRG_DETECT>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB1_CHRG_DETECT_SET>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB1_CHRG_DETECT_CLR>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB1_CHRG_DETECT_TOG>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<u32, Reg<u32, _USB1_VBUS_DETECT_STAT>>[src]

pub fn sessend(&self) -> SESSEND_R[src]

Bit 0 - Session End for USB OTG

pub fn bvalid(&self) -> BVALID_R[src]

Bit 1 - Indicates VBus is valid for a B-peripheral

pub fn avalid(&self) -> AVALID_R[src]

Bit 2 - Indicates VBus is valid for a A-peripheral

pub fn vbus_valid(&self) -> VBUS_VALID_R[src]

Bit 3 - VBus valid for USB OTG

impl R<bool, PLUG_CONTACT_A>[src]

pub fn variant(&self) -> PLUG_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_contact(&self) -> bool[src]

Checks if the value of the field is NO_CONTACT

pub fn is_good_contact(&self) -> bool[src]

Checks if the value of the field is GOOD_CONTACT

impl R<bool, CHRG_DETECTED_A>[src]

pub fn variant(&self) -> CHRG_DETECTED_A[src]

Get enumerated values variant

pub fn is_charger_not_present(&self) -> bool[src]

Checks if the value of the field is CHARGER_NOT_PRESENT

pub fn is_charger_present(&self) -> bool[src]

Checks if the value of the field is CHARGER_PRESENT

impl R<u32, Reg<u32, _USB1_CHRG_DETECT_STAT>>[src]

pub fn plug_contact(&self) -> PLUG_CONTACT_R[src]

Bit 0 - State of the USB plug contact detector.

pub fn chrg_detected(&self) -> CHRG_DETECTED_R[src]

Bit 1 - State of charger detection. This bit is a read only version of the state of the analog signal.

pub fn dm_state(&self) -> DM_STATE_R[src]

Bit 2 - DM line state output of the charger detector.

pub fn dp_state(&self) -> DP_STATE_R[src]

Bit 3 - DP line state output of the charger detector.

impl R<u32, Reg<u32, _USB1_MISC>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB1_MISC_SET>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB1_MISC_CLR>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB1_MISC_TOG>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB2_VBUS_DETECT>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB2_VBUS_DETECT_SET>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB2_VBUS_DETECT_CLR>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<u8, VBUSVALID_THRESH_A>[src]

pub fn variant(&self) -> VBUSVALID_THRESH_A[src]

Get enumerated values variant

pub fn is_4v0(&self) -> bool[src]

Checks if the value of the field is _4V0

pub fn is_4v1(&self) -> bool[src]

Checks if the value of the field is _4V1

pub fn is_4v2(&self) -> bool[src]

Checks if the value of the field is _4V2

pub fn is_4v3(&self) -> bool[src]

Checks if the value of the field is _4V3

pub fn is_4v4(&self) -> bool[src]

Checks if the value of the field is _4V4

pub fn is_4v5(&self) -> bool[src]

Checks if the value of the field is _4V5

pub fn is_4v6(&self) -> bool[src]

Checks if the value of the field is _4V6

pub fn is_4v7(&self) -> bool[src]

Checks if the value of the field is _4V7

impl R<u32, Reg<u32, _USB2_VBUS_DETECT_TOG>>[src]

pub fn vbusvalid_thresh(&self) -> VBUSVALID_THRESH_R[src]

Bits 0:2 - Set the threshold for the VBUSVALID comparator

pub fn vbusvalid_pwrup_cmps(&self) -> VBUSVALID_PWRUP_CMPS_R[src]

Bit 20 - Powers up comparators for vbus_valid detector.

pub fn discharge_vbus(&self) -> DISCHARGE_VBUS_R[src]

Bit 26 - USB OTG discharge VBUS.

pub fn charge_vbus(&self) -> CHARGE_VBUS_R[src]

Bit 27 - USB OTG charge VBUS.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB2_CHRG_DETECT>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB2_CHRG_DETECT_SET>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB2_CHRG_DETECT_CLR>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<bool, CHK_CONTACT_A>[src]

pub fn variant(&self) -> CHK_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

impl R<bool, CHK_CHRG_B_A>[src]

pub fn variant(&self) -> CHK_CHRG_B_A[src]

Get enumerated values variant

pub fn is_check(&self) -> bool[src]

Checks if the value of the field is CHECK

pub fn is_no_check(&self) -> bool[src]

Checks if the value of the field is NO_CHECK

impl R<bool, EN_B_A>[src]

pub fn variant(&self) -> EN_B_A[src]

Get enumerated values variant

pub fn is_enable(&self) -> bool[src]

Checks if the value of the field is ENABLE

pub fn is_disable(&self) -> bool[src]

Checks if the value of the field is DISABLE

impl R<u32, Reg<u32, _USB2_CHRG_DETECT_TOG>>[src]

pub fn chk_contact(&self) -> CHK_CONTACT_R[src]

Bit 18 - Check the contact of USB plug

pub fn chk_chrg_b(&self) -> CHK_CHRG_B_R[src]

Bit 19 - Check the charger connection

pub fn en_b(&self) -> EN_B_R[src]

Bit 20 - Control the charger detector.

impl R<u32, Reg<u32, _USB2_VBUS_DETECT_STAT>>[src]

pub fn sessend(&self) -> SESSEND_R[src]

Bit 0 - Session End for USB OTG

pub fn bvalid(&self) -> BVALID_R[src]

Bit 1 - Indicates VBus is valid for a B-peripheral

pub fn avalid(&self) -> AVALID_R[src]

Bit 2 - Indicates VBus is valid for a A-peripheral

pub fn vbus_valid(&self) -> VBUS_VALID_R[src]

Bit 3 - VBus valid for USB OTG

impl R<bool, PLUG_CONTACT_A>[src]

pub fn variant(&self) -> PLUG_CONTACT_A[src]

Get enumerated values variant

pub fn is_no_contact(&self) -> bool[src]

Checks if the value of the field is NO_CONTACT

pub fn is_good_contact(&self) -> bool[src]

Checks if the value of the field is GOOD_CONTACT

impl R<bool, CHRG_DETECTED_A>[src]

pub fn variant(&self) -> CHRG_DETECTED_A[src]

Get enumerated values variant

pub fn is_charger_not_present(&self) -> bool[src]

Checks if the value of the field is CHARGER_NOT_PRESENT

pub fn is_charger_present(&self) -> bool[src]

Checks if the value of the field is CHARGER_PRESENT

impl R<u32, Reg<u32, _USB2_CHRG_DETECT_STAT>>[src]

pub fn plug_contact(&self) -> PLUG_CONTACT_R[src]

Bit 0 - State of the USB plug contact detector.

pub fn chrg_detected(&self) -> CHRG_DETECTED_R[src]

Bit 1 - State of charger detection. This bit is a read only version of the state of the analog signal.

pub fn dm_state(&self) -> DM_STATE_R[src]

Bit 2 - DM line state output of the charger detector.

pub fn dp_state(&self) -> DP_STATE_R[src]

Bit 3 - DP line state output of the charger detector.

impl R<u32, Reg<u32, _USB2_MISC>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB2_MISC_SET>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB2_MISC_CLR>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, Reg<u32, _USB2_MISC_TOG>>[src]

pub fn hs_use_external_r(&self) -> HS_USE_EXTERNAL_R_R[src]

Bit 0 - Use external resistor to generate the current bias for the high speed transmitter

pub fn en_deglitch(&self) -> EN_DEGLITCH_R[src]

Bit 1 - Enable the deglitching circuit of the USB PLL output.

pub fn en_clk_utmi(&self) -> EN_CLK_UTMI_R[src]

Bit 30 - Enables the clk to the UTMI block.

impl R<u32, SILICON_REVISION_A>[src]

pub fn variant(&self) -> Variant<u32, SILICON_REVISION_A>[src]

Get enumerated values variant

pub fn is_silicon_revision_7077888(&self) -> bool[src]

Checks if the value of the field is SILICON_REVISION_7077888

impl R<u32, Reg<u32, _DIGPROG>>[src]

pub fn silicon_revision(&self) -> SILICON_REVISION_R[src]

Bits 0:31 - Chip silicon revision

Trait Implementations

impl<U, T, FI> PartialEq<FI> for R<U, T> where
    U: PartialEq,
    FI: Copy + Into<U>, 
[src]

Auto Trait Implementations

impl<U, T> Send for R<U, T> where
    T: Send,
    U: Send

impl<U, T> Sync for R<U, T> where
    T: Sync,
    U: Sync

impl<U, T> Unpin for R<U, T> where
    T: Unpin,
    U: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.