aboutsummaryrefslogtreecommitdiffstats
path: root/src/spicmds.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-06 11:44:29 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-08-06 18:56:53 -0400
commitc2a08962b79ccdb4b33b26becefa247506a7fd40 (patch)
treea3cb44e1d877f9af05bce7fb5dc22c7ae3221227 /src/spicmds.h
parent30bd7c0e47ddf495db54448d1fdf085ab480efea (diff)
downloadkutter-c2a08962b79ccdb4b33b26becefa247506a7fd40.tar.gz
kutter-c2a08962b79ccdb4b33b26becefa247506a7fd40.tar.xz
kutter-c2a08962b79ccdb4b33b26becefa247506a7fd40.zip
spicmds: Rework spi config commands
Rework the spi_config commands so that bus configuration and shutdown message configuration is done separately from the main "config_spi" command. This makes the spi configuration more flexible. It's now possible to use software spi without a CS pin. It's now possible to define multiple SPI messages to send on a shutdown event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/spicmds.h')
-rw-r--r--src/spicmds.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/spicmds.h b/src/spicmds.h
index dee50665..959fddb9 100644
--- a/src/spicmds.h
+++ b/src/spicmds.h
@@ -4,7 +4,9 @@
#include <stdint.h> // uint8_t
struct spidev_s *spidev_oid_lookup(uint8_t oid);
+struct spi_software;
+void spidev_set_software_bus(struct spidev_s *spi, struct spi_software *ss);
void spidev_transfer(struct spidev_s *spi, uint8_t receive_data
, uint8_t data_len, uint8_t *data);
-#endif // stepper.h
+#endif // spicmds.h