REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
icmd.h
Go to the documentation of this file.
1#pragma once
2
3#include <chips/SR74HCT595.h>
4
6namespace functions {
7
12 * -> [0-15 X 0-07][16-31 X 0-7][0-15 X 8-15][16-31 X 8-15] [ input X output ] matrix
13 * Each is [DATA Y2 Y1 Y0 X3 X2 X1 X0]
14 * Data bit comes first, most significant bit comes first (in SPI)
15 *
16 * See chip_cmd_word and IBlock::write_to_hardware for more information and the actual calculation of the
17 * bitstream.
18 */
20public:
21 static const SPISettings DEFAULT_SPI_SETTINGS;
22
24 explicit ICommandRegisterFunction(bus::addr_t address, uint8_t alt_function_idx);
25
26 static uint8_t chip_cmd_word(uint8_t chip_input_idx, uint8_t chip_output_idx, bool connect = true);
27};
28
29} // namespace functions
const bus::addr_t address
Definition functions.h:23
static uint8_t chip_cmd_word(uint8_t chip_input_idx, uint8_t chip_output_idx, bool connect=true)
Definition icmd.cpp:18
SR74HCT595(bus::addr_t address, uint8_t alt_function_idx, bool shift_clock)
ICommandRegisterFunction(bus::addr_t address, uint8_t alt_function_idx)
Definition icmd.cpp:15
static const SPISettings DEFAULT_SPI_SETTINGS
Definition icmd.h:12
SR74HCT595(bus::addr_t address, uint8_t alt_function_idx, bool shift_clock)
namespace for internal helpers
Definition icmd.h:6