si476x_core..._ctl_pin_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… si476x_core..._ctl_pin_cfg(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil' function that sends the 'IC_LINK_GPIO_CTL_PIN_CFG' command straight to the device πŸŽ€ and honestly? it's giving "let me rearrange my pins real quick" energy. no cap.


✨ SYNOPSIS ✨

int si476x_core_cmd_ic_link_gpo_ctl_pin_cfg (struct si476x_core *core ,
enum si476x_icin_config icin , enum si476x_icip_config icip , enum
si476x_icon_config icon , enum si476x_icop_config icop );

like, four enums and a core. that's the whole vibe check πŸ¦‹


🫢 ARGUMENTS 🫢

  • core
    • the device you're sending the command to πŸ’– literally the main character here
  • icin
    • the ICIN pin function configuration, and your options are:
    • SI476X_ICIN_NOOP β€” do not modify the behaviour πŸ™ˆ
    • SI476X_ICIN_TRISTATE β€” put the pin in tristate condition, enable 1MOhm pulldown
    • SI476X_ICIN_GPO1_HIGH β€” set pin to be an output, drive it high πŸ”₯
    • SI476X_ICIN_GPO1_LOW β€” set pin to be an output, drive it low
    • SI476X_ICIN_IC_LINK β€” set the pin to be a part of Inter-Chip link πŸ”—
  • icip
    • the ICIP pin function configuration, same lineup but with a P:
    • SI476X_ICIP_NOOP β€” do not modify the behaviour πŸ™ˆ
    • SI476X_ICIP_TRISTATE β€” put the pin in tristate condition, enable 1MOhm pulldown
    • SI476X_ICIP_GPO1_HIGH β€” set pin to be an output, drive it high πŸ”₯
    • SI476X_ICIP_GPO1_LOW β€” set pin to be an output, drive it low
    • SI476X_ICIP_IC_LINK β€” set the pin to be a part of Inter-Chip link πŸ”—
  • icon
    • the ICON pin function configuration, and bestie this one's different:
    • SI476X_ICON_NOOP β€” do not modify the behaviour πŸ™ˆ
    • SI476X_ICON_TRISTATE β€” put the pin in tristate condition, enable 1MOhm pulldown
    • SI476X_ICON_I2S β€” set the pin to be a part of audio interface in slave mode (DCLK) 🎧
    • SI476X_ICON_IC_LINK β€” set the pin to be a part of Inter-Chip link πŸ”—
  • icop
    • the ICOP pin function configuration:
    • SI476X_ICOP_NOOP β€” do not modify the behaviour πŸ™ˆ
    • SI476X_ICOP_TRISTATE β€” put the pin in tristate condition, enable 1MOhm pulldown
    • SI476X_ICOP_I2S β€” set the pin to be a part of audio interface in slave mode (DOUT) [Si4761/63/65/67 Only] πŸ‘‘ (like, read the fine print, it's a whole exclusive club)
    • SI476X_ICOP_IC_LINK β€” set the pin to be a part of Inter-Chip link πŸ”—

🌸 DESCRIPTION 🌸

so the function returns 0 on success and a negative error code on failure. that's it, that's the tea β˜• not me being obsessed with how simple it is tbh πŸ’€

ngl bestie, always check that return value. negative number = it did NOT slay.

πŸ¦‹ SEE ALSO πŸ¦‹


aight that's the whole page, periodt πŸ’… and before you go β€” huge shoutout to the source, <rainbow>./drivers/mfd</rainbow>, dated October 2026 ⭐ that's the version and the date, bestie, don't @ me πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from