38#include "dcc/railcom.h"
73 ssize_t
write(
File *file,
const void *buf,
size_t count)
override
79 ssize_t
read(
File *file,
void *buf,
size_t count)
override
const char * name
device name
Abstract base class for railcom drivers.
uintptr_t expectedFeedbackKey_
What should be the feedback key in the packet.
void end_cutout() override
Called after the cutout is over.
void start_cutout() override
Called at the beginning of the first window.
ssize_t write(File *file, const void *buf, size_t count) override
Write to a file or device.
void feedback_sample() override
No implementation needed.
void send_ch1(const DCCFeedback *ch1_pkt) override
Specifies what packet should be sent for the channel1 cutout.
const DCCFeedback * ch1Pkt_
The packet to send in channel 1. Externally owned.
void set_feedback_key(uint32_t key) override
Feedback key is set by the DCC decoder driver.
void send_ch2(const DCCFeedback *ch2_pkt) override
Specifies what packet should be sent for the channel2 cutout.
void no_cutout() override
Called instead of start/mid/end-cutout at the end of the current packet if there was no cutout reques...
ssize_t read(File *file, void *buf, size_t count) override
Read from a file or device.
void middle_cutout() override
Called at the beginning of the middle window.
const DCCFeedback * ch2Pkt_
The packet to send in channel 2. Externally owned.
Specialization of Serial driver for STM32F0xx devices.
IRQn_Type interrupt
interrupt of this device
Stm32Uart()
Default constructor.