SCMDSPI(4)
π 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 withSCMD_DEBUG, this node will appear, and you can use it to set the debugging level. noSCMD_DEBUG, no node, that's the deal π
π FILES π
/dev/scmduβ the character device that lets you get at the register space of a mainu, SCMD device. yep,uis 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 commandspi_read_onein thescmdctl(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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2021 Brad Spencer <brad@anduin.eldar.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms