SCMDSPI(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’… SCMDSPI(4) β€” like, the SPI frontend for the Sparkfun Serial Controlled Motor Driver, bestie

okay so this is a section 4 kernel interfaces manual page, SCMDSPI(4), and honestly? she's a whole vibe. let's get into it ✨


🌸 NAME 🌸

scmdspi β€” the SPI frontend to the Sparkfun Serial Controlled Motor Driver πŸŽ€


✨ SYNOPSIS ✨

scmd* at spi? slave 0
scmd* at spi? slave 1

literally that's it. two lines. she's lowkey effortless πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the scmdspi driver is the thing that provides the SPI frontend attachment for the Sparkfun SCMD device. that's the whole description, no cap β€” she shows up, she attaches over SPI, she slays 🫢


🌈 SYSCTL VARIABLES 🌈

so the following sysctl(3) variables are inherited from scmd(4) β€” not invented here, just passed down like a cute hand-me-down:

  • hw.scmd0.debug β€” if the driver is compiled with SCMD_DEBUG, this node will appear, and you can use it to set the debugging level. no SCMD_DEBUG, no node, that's the deal πŸ™ˆ

πŸŽ€ FILES πŸŽ€

  • /dev/scmdu β€” the character device that lets you get at the register space of a main u, SCMD device. yep, u is part of the literal name, don't come for me πŸ‘‘

🧚 SEE ALSO 🧚

iic(4), spi(4), scmdi2c(4), scmdspi(4), scmdctl(1), sysctl(8)

go read those, iykyk πŸ’–


⭐ HISTORY ⭐

the scmdspi driver first appeared in NetBSD 10.0. a legend was born, periodt 🌟


πŸ‘‘ AUTHORS πŸ‘‘

the scmdspi driver was written by Brad Spencer</> <brad@anduin.eldar.org>. thank you brad, we appreciate you fr fr 🫑


πŸ’€ BUGS πŸ’€

okay so this is the part where we're real with each other. when used in SPI mode, the SCMD device uses an odd method of doing reads that can become stuck. like, actually stuck. 😭

bestie pls note: check out the command spi_read_one in the scmdctl(1) utility to try and unstick the device when this happens. that's your rescue plan, keep it in your back pocket 🩹

and that's the page!! this one came from the Debian build, dated December 1, 2021 β€” so like, vintage but still iconic. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from