ucb1x00_io_set_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 type struct 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: the in bitfield has priority over the out bitfield. if you specify a pin as both input and output, it will end up as an input. in ate, 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 🌈

xoxo, this page is from ./drivers/mfd πŸ’– dated October 2026 πŸŽ€

πŸ“¦ where this page comes from