News
Shop
Learn
Community
Ein Bild oder sowas
LUCIDAC Documentation
User Docs
Pybrid
Julia
C++
Firmware
REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
lucidac.cpp
Go to the documentation of this file.
1
// Copyright (c) 2024 anabrid GmbH
2
// Contact: https://www.anabrid.com/licensing/
3
//
4
// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6
#include <lucidac/lucidac.h>
7
#include <utils/mac.h>
8
9
#include "
native/lucidac.h
"
10
11
carrier::Carrier& carrier::Carrier::get() {
12
static
carrier::Carrier* instance;
13
if
(!instance) instance = detect();
14
if
(!instance)
throw
"Could not detect Carrier"
;
15
return
*instance;
16
}
17
18
platform::LUCIDAC *platform::LUCIDAC::from_entity_classifier(entities::EntityClassifier classifier,
19
const
bus::addr_t block_address) {
20
21
auto
lucidac =
new
LUCIDAC(
new
Dummy_LUCIDAC_HAL({}));
22
lucidac->set_entity_classifier(classifier);
23
return
lucidac;
24
}
lucidac.h
lib
native
src
lucidac
lucidac.cpp
Generated by
1.13.2