firmware
v0.1.2
Chromation Spectrometer Dev-Kit
|
#include "Hardware.h"
#include "StatusCodes.h"
#include "BiColorLed.h"
#include "Spi.h"
#include "SpiSlave.h"
#include "UartSpi.h"
#include <stdlib.h>
#include "Queue.h"
#include "VisCmd.h"
Go to the source code of this file.
Macros | |
#define | max_length_of_queue 24 |
Maximum size of the Queue's FIFO buffer is 24 bytes. | |
Functions | |
static void | setup (void) |
static void | loop (void) |
static void | setup_IndicatorLEDs (void) |
static void | setup_SpiCommunication (void) |
static void | setup_DetectorReadout (void) |
int | main () |
ISR (SPI_STC_vect) | |
Variables | |
volatile Queue_s * | SpiFifo |
Allocate static memory for the SPI Rx Queue. | |
volatile uint8_t | spi_rx_buffer [max_length_of_queue] |
Allocate static memory for the Queue's FIFO buffer. | |
ISR | ( | SPI_STC_vect | ) |
Interrupt when a SPI transfer completes:
SpiSlaveTxByte
.Definition at line 98 of file vis-spi-out.c.
|
static |
Setup control of the ADC and the LIS-770i detector.
UartSpi_AdcConv
: output, idle LOW
Lis_PixSelect
and Lis_Rst
: output, idle LOW
Definition at line 137 of file vis-spi-out.c.
|
static |
Initialize PCB indicator LEDs
Definition at line 109 of file vis-spi-out.c.
|
static |
Set up SPI hardware module and a FIFO to buffer bytes sent from the SPI master.
Spi_DataReady
: output, idle HIGH
Spi_Miso
: outputSPI_STC_vect
)Definition at line 117 of file vis-spi-out.c.