#include "spi.h"
Go to the source code of this file.
Functions | |
void | spi_pulse_0 () |
SPI test routine. | |
void | spi_pulse_1 () |
SPI test routine. | |
void | spi_setup () |
Setup ports and pins for SPI output. | |
void | spi_write (uns8 data) |
Send a byte of data using software spi. | |
void | spi_write_lsb (uns8 data) |
Send a byte of data using software spi. | |
void | spi_write_sure (uns8 data) |
SPI write for Sure devices. |
void spi_pulse_0 | ( | ) |
void spi_pulse_1 | ( | ) |
void spi_setup | ( | ) |
Setup ports and pins for SPI output
Definition at line 46 of file spi.c.
References PORTA.
Referenced by hc4led_setup(), and sure_7seg_setup().
void spi_write | ( | uns8 | data | ) |
Sends a byte of data MSB first, data only changes on clock low
Definition at line 18 of file spi.c.
References change_pin, clear_pin, set_pin, and uns8.
Referenced by hc4led_write_str().
void spi_write_lsb | ( | uns8 | data | ) |
void spi_write_sure | ( | uns8 | data | ) |
SPI write byte for Sure devices. Sure devices do things a little differently. Data goes LSB first but data changes on clock high.
Definition at line 52 of file spi.c.
References change_pin, clear_pin, set_pin, and uns8.
Referenced by sure_7seg_write_str().