ucb1x00_io_set_dir(9)
π ucb1x00_io_set_dir(9) β Kernel API Manual π
okay bestie, this is the manual page for ucb1x00_io_set_dir(9) from the Kernel API Manual, and itβs lowkey all about telling the UCB1x00 chip which of its IO pins are inputs and which are outputs. β¨
πΈ NAME πΈ
ucb1x00_io_set_dir β set IO direction
π SYNOPSIS π
void ucb1x00_io_set_dir (struct ucb1x00 *ucb , unsigned int in ,
unsigned int out );
π¦ ARGUMENTS π¦
ucbβ UCB1x00 structure describing chip, with typestruct ucb1x00 *. itβs giving βwhich chip are we talking to?β energy.inβ bitfield of IO pins to be set as inputs. input girlies, assemble. πoutβ bitfield of IO pins to be set as outputs. output delegation, periodt. π₯
β¨ DESCRIPTION β¨
So this function sets the IO direction of the ten general purpose IO pins on the UCB1x00 chip. ten pins, one bitfield vibe check. π
important: theinbitfield has priority over theoutbitfield. if you specify a pin as both input and output, it will end up as an input.inate, no cap. π
ucb1x00_enable must have been called to enable the comms before using this function. like, enable the comms first, bestie, or youβre not gonna have a good time. π«Ά
This function takes a spinlock, disabling interrupts. so yeah, itβs doing real kernel business in there. π
π SEE ALSO π
- Kernel file
./drivers/mfd/ucb1x00-core.c ucb1x00_io_write(9)ucb1x00_io_read(9)ucb1x00_adc_enable(9)ucb1x00_adc_read(9)ucb1x00_adc_disable(9)
xoxo, this page is from ./drivers/mfd π dated October 2026 π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms