diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
| commit | 5cb84ec742fd33f78c8022863fadaa8d0d93e176 (patch) | |
| tree | 1a81ca3665e6153923e40db7b0d988f8573ab59c /static/netbsd/man4/scmdspi.4 | |
| parent | a59214f344567c037d5776879bcfc5fcc1d4d5f6 (diff) | |
feat: Added NetBSD man pages
Diffstat (limited to 'static/netbsd/man4/scmdspi.4')
| -rw-r--r-- | static/netbsd/man4/scmdspi.4 | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/static/netbsd/man4/scmdspi.4 b/static/netbsd/man4/scmdspi.4 new file mode 100644 index 00000000..df50d4f7 --- /dev/null +++ b/static/netbsd/man4/scmdspi.4 @@ -0,0 +1,71 @@ +.\" $NetBSD: scmdspi.4,v 1.1 2021/12/07 17:39:54 brad Exp $ +.\" +.\" Copyright (c) 2021 Brad Spencer <brad@anduin.eldar.org> +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd December 1, 2021 +.Dt SCMDSPI 4 +.Os +.Sh NAME +.Nm scmdspi +.Nd SPI frontend to the Sparkfun Serial Controlled Motor Driver +.Sh SYNOPSIS +.Cd "scmd* at spi? slave 0" +.Cd "scmd* at spi? slave 1" +.Sh DESCRIPTION +The +.Nm +driver provides the SPI frontend attachment for the Sparkfun SCMD device. +.Sh SYSCTL VARIABLES +The following +.Xr sysctl 3 +variables are inherited from +.Xr scmd 4 +: +.Bl -tag -width indent +.It Li hw.scmd0.debug +If the driver is compiled with +.Dv SCMD_DEBUG , +this node will appear and can be used to set the debugging level. +.El +.Sh FILES +.Bl -tag -width /dev/rcaXXXXX -compact +.It Pa /dev/scmd Ns Ar u +character device allowing access to the register space of a main +.Ar u , +SCMD device +.Sh SEE ALSO +.Xr iic 4 , +.Xr spi 4 , +.Xr scmdi2c 4 , +.Xr scmdspi 4 , +.Xr scmdctl 1 , +.Xr sysctl 8 +.Sh HISTORY +The +.Nm +driver first appeared in +.Nx 10.0 . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Brad Spencer Aq Mt brad@anduin.eldar.org . +.Sh BUGS +When used in SPI mode, the SCMD device uses an odd method of doing reads +that can become stuck. See the command spi_read_one in the +.Xr scmdctl 1 +utility to try and unstick the device when this happens. + |
