Type Definition atsam4ls8b_pac::usbc::upcfg5::PTOKEN_R

source ·
pub type PTOKEN_R = FieldReader<u8, PTOKENSELECT_A>;
Expand description

Field PTOKEN reader - Pipe Token

Implementations§

source§

impl PTOKEN_R

source

pub fn variant(&self) -> Option<PTOKENSELECT_A>

Get enumerated values variant

source

pub fn is_setup(&self) -> bool

Checks if the value of the field is SETUP

source

pub fn is_in(&self) -> bool

Checks if the value of the field is IN

source

pub fn is_out(&self) -> bool

Checks if the value of the field is OUT