RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn dir(&self) -> &DIR

0x00 - Data Direction

Source

pub const fn dirset(&self) -> &DIRSET

0x01 - Data Direction Set

Source

pub const fn dirclr(&self) -> &DIRCLR

0x02 - Data Direction Clear

Source

pub const fn dirtgl(&self) -> &DIRTGL

0x03 - Data Direction Toggle

Source

pub const fn out(&self) -> &OUT

0x04 - Output Value

Source

pub const fn outset(&self) -> &OUTSET

0x05 - Output Value Set

Source

pub const fn outclr(&self) -> &OUTCLR

0x06 - Output Value Clear

Source

pub const fn outtgl(&self) -> &OUTTGL

0x07 - Output Value Toggle

Source

pub const fn in_(&self) -> &IN

0x08 - Input Value

Source

pub const fn intflags(&self) -> &INTFLAGS

0x09 - Interrupt Flags

Source

pub const fn portctrl(&self) -> &PORTCTRL

0x0a - Port Control

Source

pub const fn pin0ctrl(&self) -> &PIN0CTRL

0x10 - Pin 0 Control

Source

pub const fn pin1ctrl(&self) -> &PIN1CTRL

0x11 - Pin 1 Control

Source

pub const fn pin2ctrl(&self) -> &PIN2CTRL

0x12 - Pin 2 Control

Source

pub const fn pin3ctrl(&self) -> &PIN3CTRL

0x13 - Pin 3 Control

Source

pub const fn pin4ctrl(&self) -> &PIN4CTRL

0x14 - Pin 4 Control

Source

pub const fn pin5ctrl(&self) -> &PIN5CTRL

0x15 - Pin 5 Control

Source

pub const fn pin6ctrl(&self) -> &PIN6CTRL

0x16 - Pin 6 Control

Source

pub const fn pin7ctrl(&self) -> &PIN7CTRL

0x17 - Pin 7 Control

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.