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
impl TlmmPin
pub const fn linux_value(self) -> u32
pub const fn linux_value(self) -> u32
Returns the Linux GPIO number of the pin.
§impl TlmmPin
impl TlmmPin
pub fn set_pull(self, pull: PullSelection) -> Result<()>
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.