29 #define max_length_of_queue 24
31 volatile uint8_t spi_rx_buffer[max_length_of_queue];
33 static void setup(
void);
34 static void loop(
void);
75 case 12: AutoExposure();
break;
76 case 13: GetAutoExposeConfig();
break;
77 case 14: SetAutoExposeConfig();
break;
78 case 15: GetSensorHash();
break;
165 S13131StartClocking();
177 binning = BINNING_ON;
179 active_rows = ALL_ROWS_ACTIVE;
uint16_t max_exposure
max_exposure is 1.31 seconds (65535 20µs-cycles) This is the 16-bit limit, UINT16_MAX,...
uint16_t start_pixel
AutoExpose() ignores pixels below start_pixel.
uint8_t max_tries
maximum number of tries before AutoExpose() gives up
uint16_t stop_pixel
AutoExpose() ignores pixels above stop_pixel.
uint16_t target_tolerance
target ± target_tolerance is the target peak counts range for AutoExpose().
uint16_t max_dark
max_dark is a conservative estimate on the largest dark offset
uint16_t target
target peak counts for AutoExpose().
uint16_t min_exposure
min_exposure is 100 microseconds (five 20µs-cycles) This is a safe lower limit to avoid dead frames.
void BiColorLedOff(bicolorled_num led)
void BiColorLedGreen(bicolorled_num led)
void BiColorLedRed(bicolorled_num led)
void BiColorLedOn(bicolorled_num led)
See LisConfig.h for context.
void LisWriteConfig(void)
uint16_t exposure_ticks
LIS-770i exposure time.
uint8_t QueuePop(volatile Queue_s *SpiFifo)
bool QueueIsFull(volatile Queue_s *SpiFifo)
void QueuePush(volatile Queue_s *SpiFifo, uint8_t data_to_push)
volatile Queue_s * QueueInit(volatile uint8_t *buffer, uint16_t const buffer_size_in_bytes)
bool QueueIsEmpty(volatile Queue_s *SpiFifo)
spi_ptr Spi_SPDR
SPI Data Register.
void SpiSlaveTxByte(uint8_t input_byte)
Spi.h declares SPI hardware types and variables common to the SPI Master and SPI Slave.
See StatusCode.h for context.
void GetSensorConfig(void)
void SetSensorConfig(void)
Queue uses a byte array as a circular buffer.
vis-spi-out.c includes this file to pick up the -Hardware.h headers and AVR macros.
volatile Queue_s * SpiFifo
Allocate static memory for the SPI Rx Queue.
#define max_length_of_queue
Maximum size of the Queue's FIFO buffer is 24 bytes.
static void setup_DetectorReadout(void)
static void setup_SpiCommunication(void)
volatile uint8_t spi_rx_buffer[max_length_of_queue]
Allocate static memory for the Queue's FIFO buffer.
static void setup_IndicatorLEDs(void)