[][src]Type Definition nrf51::gpio::dirset::PIN2_R

type PIN2_R = R<bool, PIN2_A>;

Reader of field PIN2

Methods

impl PIN2_R[src]

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

Get enumerated values variant

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

Checks if the value of the field is INPUT

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

Checks if the value of the field is OUTPUT