rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
kline.h
Go to the documentation of this file.
1#pragma once
2
3
4#ifndef KLINE_SERIAL_DEVICE
5#define KLINE_SERIAL_DEVICE SD2
6#endif
7#ifndef KLINE_SERIAL_DEVICE_RX
8#define KLINE_SERIAL_DEVICE_RX H144_UART2_RX
9#endif
10#ifndef KLINE_SERIAL_DEVICE_TX
11#define KLINE_SERIAL_DEVICE_TX H144_UART2_TX
12#endif
13
14// The standard transmission rate
15#define KLINE_BAUD_RATE 10400
16
17void initKLine();
18
19/* Stop/Start for config update */
20void startKLine();
21void stopKLine();
22
23typedef size_t (*ByteSource)(uint8_t *, int);
24size_t readWhileGives(ByteSource source, uint8_t *buffer, size_t bufferSize);
void stopKLine()
Definition kline.cpp:184
void startKLine()
Definition kline.cpp:157
void initKLine()
Definition kline.cpp:198
size_t(* ByteSource)(uint8_t *, int)
Definition kline.h:23
size_t readWhileGives(ByteSource source, uint8_t *buffer, size_t bufferSize)
Definition kline.cpp:11
static BigBufferHandle buffer