SCMD(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’– SCMD(4) πŸ’–

okay so bestie, welcome to SCMD(4) from the Kernel Interfaces Manual ✨ β€” we're about to talk about the Sparkfun Serial Controlled Motor Driver, and honestly? iconic behavior πŸŽ€

✨ NAME ✨

scmd β€” the common driver for the Sparkfun Serial Controlled Motor Driver πŸ’…

🌸 SYNOPSIS 🌸

scmd* at iic? ...
scmd* at spi? ...

πŸ¦‹ DESCRIPTION πŸ¦‹

The scmd driver provides the common framework to the Sparkfun SCMD board. The SCMD board is a Cypress core ARM SOC in front of a DRV8835 motor driver chip 🧚 There are a number of ways to talk to the board, and scmdi2c(4) and scmdspi(4) should be consulted for the I2C and SPI frontend drivers. The board is fully documented in the datasheet for at Sparkfun.

The board provides a register address space of 126 registers which control the various behaviors of the motors attached to the board. Each SCMD board can handle two motors, and up to 16 SCMD boards may be chained together, allowing for 34 motors to be controlled from a single master instance πŸ”₯ The secondary boards are accessed by set of view port registers from the main board. The scmd(4) driver and its associated frontends flatten the main SCMD board and all chained boards into a linear register space that can be opened, seeked, read from and written to like any other file or device β€” without having to worry about the view port πŸ’…

A command line utility scmdctl(1) is provided that allows convenient command line commands for most of the functions provided by the SCMD board. periodt ✨

πŸŽ€ SYSCTL VARIABLES πŸŽ€

The following sysctl(3) variables are provided:

  • hw.scmd0.debug β€” if the driver is compiled with SCMD_DEBUG, this node will appear and can be used to set the debugging level πŸ’–

πŸ“ FILES πŸ“

  • /dev/scmdu β€” character device allowing access to the register space of a main u, SCMD device πŸ‘‘

🌈 SEE ALSO 🌈

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

πŸ’œ HISTORY πŸ’œ

The scmd driver first appeared in NetBSD 10.0 πŸŽ‰

πŸ‘‘ AUTHORS πŸ‘‘

The scmd driver was written by Brad Spencer <brad@anduin.eldar.org> 🫢


and that's the wrap, bestie β€” this page is from Debian, dated January 1, 2022 πŸ’…βœ¨

πŸ“¦ where this page comes from