pub(crate) fn dummy_init_config_data() {
    let target_data: HiveTargetData = [
        // atsamd daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "ATSAMD10C13A".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD09D14A-M".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD51J18A".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD21E16L".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        // rsicv/esp daughterboard
        Some([
            TargetState::Unknown,
            TargetState::Unknown,
            TargetState::Known(TargetInfo {
                name: "FE310-G002".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Unknown,
        ]),
        // lpc daughterboard
        Some([
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "LPC1114FDH28_102_5".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "LPC1313FBD48_01,15".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        // nrf daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "nRF5340_xxAA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "nRF52832_xxAB".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "nRF52840_xxAA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "NRF51822_xxAC".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        None,
        // stm32 daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "STM32G031F4Px".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "STM32L151C8xxA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
        ]),
        None,
        None,
    ];

    DB.config_tree
        .c_insert(keys::config::TARGETS, &target_data)
        .unwrap();

    let probes = Probe::list_all();

    let probe_data: HiveProbeData = [
        Some(ProbeInfo {
            identifier: probes[0].identifier.clone(),
            vendor_id: probes[0].vendor_id,
            product_id: probes[0].product_id,
            serial_number: probes[0].serial_number.clone(),
            hid_interface: probes[0].hid_interface,
        }),
        Some(ProbeInfo {
            identifier: probes[1].identifier.clone(),
            vendor_id: probes[1].vendor_id,
            product_id: probes[1].product_id,
            serial_number: probes[1].serial_number.clone(),
            hid_interface: probes[1].hid_interface,
        }),
        None,
        None,
    ];

    DB.config_tree
        .c_insert(keys::config::PROBES, &probe_data)
        .unwrap();
}
/// Current dummy implementation of the configuration data initialization. Later this will be done by the user in the configuration backend UI
Current dummy implementation of the configuration data initialization. Later this will be done by the user in the configuration backend UI
Current dummy implementation of the configuration data initialization . Later this will be done by the user in the configuration backend UI
pub(crate) fn dummy_init_config_data() {
    let target_data: HiveTargetData = [
        // atsamd daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "ATSAMD10C13A".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD09D14A-M".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD51J18A".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "ATSAMD21E16L".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        // rsicv/esp daughterboard
        Some([
            TargetState::Unknown,
            TargetState::Unknown,
            TargetState::Known(TargetInfo {
                name: "FE310-G002".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Unknown,
        ]),
        // lpc daughterboard
        Some([
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "LPC1114FDH28_102_5".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "LPC1313FBD48_01,15".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        // nrf daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "nRF5340_xxAA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "nRF52832_xxAB".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "nRF52840_xxAA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::Known(TargetInfo {
                name: "NRF51822_xxAC".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
        ]),
        None,
        // stm32 daughterboard
        Some([
            TargetState::Known(TargetInfo {
                name: "STM32G031F4Px".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
            TargetState::Known(TargetInfo {
                name: "STM32L151C8xxA".to_owned(),
                architecture: None,
                memory_address: None,
                status: Err("Not initialized".to_owned()),
            }),
            TargetState::NotConnected,
        ]),
        None,
        None,
    ];
    DB.config_tree
        .c_insert(keys::config::TARGETS, &target_data)
        .unwrap();
    let probes = Probe::list_all();
    let probe_data: HiveProbeData = [
        Some(ProbeInfo {
            identifier: probes[0].identifier.clone(),
            vendor_id: probes[0].vendor_id,
            product_id: probes[0].product_id,
            serial_number: probes[0].serial_number.clone(),
            hid_interface: probes[0].hid_interface,
        }),
        Some(ProbeInfo {
            identifier: probes[1].identifier.clone(),
            vendor_id: probes[1].vendor_id,
            product_id: probes[1].product_id,
            serial_number: probes[1].serial_number.clone(),
            hid_interface: probes[1].hid_interface,
        }),
        None,
        None,
    ];
    DB.config_tree
        .c_insert(keys::config::PROBES, &probe_data)
        .unwrap();
}
pub ( crate ) fn dummy_init_config_data ( ) { let target_data : HiveTargetData = [ // atsamd daughterboard Some ( [ TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , ] ) , // rsicv/esp daughterboard Some ( [ TargetState :: Unknown , TargetState :: Unknown , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Unknown , ] ) , // lpc daughterboard Some ( [ TargetState :: NotConnected , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: NotConnected , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , ] ) , // nrf daughterboard Some ( [ TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , ] ) , None , // stm32 daughterboard Some ( [ TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: NotConnected , TargetState :: Known ( TargetInfo { name : " " . to_owned ( ) , architecture : None , memory_address : None , status : Err ( " " . to_owned ( ) ) , } ) , TargetState :: NotConnected , ] ) , None , None , ] ; DB . config_tree . c_insert ( keys :: config :: TARGETS , & target_data ) . unwrap ( ) ; let probes = Probe :: list_all ( ) ; let probe_data : HiveProbeData = [ Some ( ProbeInfo { identifier : probes [ 0 ] . identifier . clone ( ) , vendor_id : probes [ 0 ] . vendor_id , product_id : probes [ 0 ] . product_id , serial_number : probes [ 0 ] . serial_number . clone ( ) , hid_interface : probes [ 0 ] . hid_interface , } ) , Some ( ProbeInfo { identifier : probes [ 1 ] . identifier . clone ( ) , vendor_id : probes [ 1 ] . vendor_id , product_id : probes [ 1 ] . product_id , serial_number : probes [ 1 ] . serial_number . clone ( ) , hid_interface : probes [ 1 ] . hid_interface , } ) , None , None , ] ; DB . config_tree . c_insert ( keys :: config :: PROBES , & probe_data ) . unwrap ( ) ; }
Current dummy implementation of the configuration data initialization.
Current dummy implementation of the configuration data initialization .