Lines Matching +full:ascii +full:. +full:d

1 .\" Copyright (c) 2018 by S.F.T. Inc.
2 .\"
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
5 .\" are met:
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in the
10 .\" documentation and/or other materials provided with the distribution.
11 .\"
12 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 .\" SUCH DAMAGE.
23 .\"
38 .Op Fl d Cm r Ns | Ns Cm w Ns | Ns Cm rw
55 device.
62 pin on the spibus, and therefore needs to be specified.
66 .Dq spigen0.0 .
69 .Xr spigen 4 .
74 Specifies ASCII mode.
77 such as 00 01 02 etc.
80 flag, the data on stdin remains a sequence of ASCII hexadecimal
81 byte values, but the output reverts to binary mode.
85 mode.
88 has been specified.
90 .Pq rather than ASCII ,
91 while leaving the input format as-is.
97 on stdout as binary.
100 skipping any bytes read-in during the transfer.
104 that is, 2 character hexadecimal values, optionally separated by white space.
106 bytes of data.
108 during the command sequence.
110 The total number of bytes to transfer as a decimal integer.
114 .Dq 0 .
119 to base the transfer on the input file's size.
120 .It Fl d Cm r Ns | Ns Cm w Ns | Ns Cm rw
127 for simultaneous read and write.
130 .Pq default is Pa /dev/spigen0 .
132 Print help text to stderr, explaining the command line options.
134 Displays information about the SPI device to stderr.
136 and clock speed are not changed.
138 LSB bit order.
139 The default is MSB, i.e., the highest order bit is
140 transmitted first.
143 caused the LSB to be transmitted and read first.
145 SPI mode, 0 through 3.
147 data, as per the SPI specification.
149 Specify the maximum speed, in Hz, for the SPI clock.
151 exceed this maximum.
153 Specifies Verbose mode.
154 Diagnostics and information are written to stderr.
157 more than once to increase verbosity.
168 Set the maximum clock speed to 200Khz and the mode to 3 on spigen0.1, but do
171 spi -f spigen0.1 -s 200000 -m 3
177 spi -d r -C "00 01" -c 2
181 2-byte ASCII hexadecimal, with mode 2, and a maximum clock speed of 500khz.
183 echo "05" | spi -A -d rw -m 2 -s 500000 -c 2
188 as hexadecimal bytes, using the current maximum clock speed and SPI mode.
190 spi -d rw -c -1 <input_file.bin | od -An -t x1
196 displaying it as two hexadecimal unsigned short integer values.
198 echo "00 01" | spi -A -b -d rw -c 4 | od -t x2
202 sending the command byte 0x9f and displaying the 3-byte reply in ASCII hex.
204 spi -f spigen0.0 -m 0 -s 1000000 -d r -c 3 -A -C 9f
214 .Fx 11.3 .