REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
cblock.cpp
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
4
5#include <proto/main.pb.h>
6#include "native/cblock.h"
7
8blocks::CBlock *blocks::CBlock::from_entity_classifier(entities::EntityClassifier classifier,
9 const bus::addr_t block_address) {
10
11 auto c_block = new CBlock(new DummyCBlockHAL({}));
12 c_block->set_entity_classifier(classifier);
13 return c_block;
14}
15
16bool blocks::DummyCBlockHAL::write_factor(uint8_t idx, float value) {
17 if (idx >= 32)
18 return false;
19 return true;
20}
bool write_factor(uint8_t idx, float value) override
Definition cblock.cpp:16