Skip to main content

TlmmPin

Enum TlmmPin 

pub enum TlmmPin {
Show 37 variants Sdc1Cmd, Sdc1Clk, Sdc1Data0, Sdc1Data1, Sdc1Data2, Sdc1Data3, UsimPresence, I2c1Sda, I2c1Scl, SdIntDet, Uart1Cts, Uart1Rts, Uart1Rx, Gpio1, Uart1Tx, Gpio2, Gpio3, PcmSync, PcmIn, PcmClk, PcmOut, I2c2Sda, I2c2Scl, SpiMosi, SpiMiso, SpiCsN, SpiClk, OtgPwrEn, Gpio4, Gpio5, WlanEn, Gpio6, Gpio7, Uart2Tx, Uart2Cts, Uart2Rx, Uart2Rts,
}
Expand description

GPIO of the TLMM.

Variants§

§

Sdc1Cmd

SDC1 command pin.

§

Sdc1Clk

SDC1 clock pin.

§

Sdc1Data0

SDC1 data 0 pin.

§

Sdc1Data1

SDC1 data 1 pin.

§

Sdc1Data2

SDC1 data 2 pin.

§

Sdc1Data3

SDC1 data 3 pin.

§

UsimPresence

USIM presence detection pin.

§

I2c1Sda

I2C1 SDA pin.

§

I2c1Scl

I2C1 SCL pin.

§

SdIntDet

Interrupt pin that detects the SD card.

§

Uart1Cts

UART1 CTS pin.

§

Uart1Rts

UART1 RTS pin.

§

Uart1Rx

UART1 RX pin.

§

Gpio1

GPIO 1 pin.

§

Uart1Tx

UART1 TX pin.

§

Gpio2

GPIO 2 pin.

§

Gpio3

GPIO 3 pin.

§

PcmSync

PCM sync pin.

§

PcmIn

PCM input pin.

§

PcmClk

PCM clock pin.

§

PcmOut

PCM output pin.

§

I2c2Sda

I2C2 SDA pin.

§

I2c2Scl

I2C2 SCL pin.

§

SpiMosi

SPI MOSI pin.

§

SpiMiso

SPI MISO pin.

§

SpiCsN

SPI chip select pin.

§

SpiClk

SPI clock pin.

§

OtgPwrEn

USB OTG power enable pin.

§

Gpio4

GPIO 4 pin.

§

Gpio5

GPIO 5 pin.

§

WlanEn

WLAN enable pin.

§

Gpio6

GPIO 6 pin.

§

Gpio7

GPIO 7 pin.

§

Uart2Tx

UART2 TX pin.

§

Uart2Cts

UART2 CTS pin.

§

Uart2Rx

UART2 RX pin.

§

Uart2Rts

UART2 RTS pin.

Implementations§

§

impl TlmmPin

pub const fn ql_value(self) -> u32

Returns the QuecOpen enum value of the pin.

pub const fn linux_value(self) -> u32

Returns the Linux GPIO number of the pin.

§

impl TlmmPin

pub fn set_pull(self, pull: PullSelection) -> Result<()>

Sets the pull selection of the pin, without exporting it.

The register write can race with the kernel. Don’t call this while another user changes the configuration of the pin.

§Errors

Returns an error if /dev/mem can’t be opened or mapped.

const fn address(self) -> u64

Trait Implementations§

§

impl Clone for TlmmPin

§

fn clone(&self) -> TlmmPin

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for TlmmPin

§

impl Debug for TlmmPin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Eq for TlmmPin

§

impl Hash for TlmmPin

§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for TlmmPin

§

fn eq(&self, other: &TlmmPin) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for TlmmPin

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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.