Firmware for KL25Z board to interact with eight pc052c boards. Designed very specifically for TORCH DAQ_v13. Beware: not very user-friendly.
spi_functions.h
- Committer:
- sagara17
- Date:
- 2017-07-07
- Revision:
- 4:efb9246409c0
- Parent:
- 0:76bb47702467
File content as of revision 4:efb9246409c0:
//#include "mbed.h" int sendConfiguration(Serial &serialOut, SPI &dac_port, DigitalOut &sync); int sendTransfer(unsigned short data, SPI &dac_port, DigitalOut &sync); int mySPISend( unsigned short data, SPI &dac_port, DigitalOut &sync); int powerMode(SPI &dac_port, DigitalOut &sync, int mode); int setPort(SPI &dac_port, DigitalOut &sync, int myPort, int newState); int mySPIRead(Serial &serialOut, unsigned short data, SPI &dac_port, DigitalOut &sync);