pub struct SplitBoardConfig {Show 15 fields
pub rows: usize,
pub cols: usize,
pub row_offset: usize,
pub col_offset: usize,
pub ble_addr: Option<[u8; 6]>,
pub serial: Option<Vec<SerialConfig>>,
pub matrix: MatrixConfig,
pub input_device: Option<InputDeviceConfig>,
pub display: Option<DisplayConfig>,
pub battery_adc_pin: Option<String>,
pub adc_divider_measured: Option<u32>,
pub adc_divider_total: Option<u32>,
pub output: Option<Vec<OutputConfig>>,
pub firmware: Option<String>,
pub update_policy: Option<String>,
}Expand description
Configurations for each split board
The transport field must match split.connection: serial is required for
serial splits and forbidden for BLE splits; ble_addr is optional for BLE
splits (dongle setups omit it) and forbidden for serial splits.
Fields§
§rows: usizeRow number of the split board
cols: usizeCol number of the split board
row_offset: usizeRow offset of the split board
col_offset: usizeCol offset of the split board
ble_addr: Option<[u8; 6]>Ble address
serial: Option<Vec<SerialConfig>>Serial config, the vector length should be 1 for peripheral
matrix: MatrixConfigMatrix config for the split
input_device: Option<InputDeviceConfig>Input device config for the split
display: Option<DisplayConfig>Display config for the split board
battery_adc_pin: Option<String>Battery ADC pin for this split board
adc_divider_measured: Option<u32>ADC divider measured value for battery
adc_divider_total: Option<u32>ADC divider total value for battery
output: Option<Vec<OutputConfig>>Output Pin config for the split
firmware: Option<String>Path to the peripheral firmware binary for automatic dfu_split update.
Relative to the project’s Cargo.toml. When set, the generated code
includes the binary with include_bytes! and registers it via
set_firmware_update_data.
update_policy: Option<String>DFU update policy for this peripheral. “MatchHash” (default) only flashes when the firmware differs; “force” always flashes.
Trait Implementations§
Source§impl Clone for SplitBoardConfig
impl Clone for SplitBoardConfig
Source§fn clone(&self) -> SplitBoardConfig
fn clone(&self) -> SplitBoardConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more