CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/AP_Periph/serial_options.h
Views: 1798
1
#pragma once
2
3
#ifdef HAL_PERIPH_ENABLE_SERIAL_OPTIONS
4
5
#ifndef HAL_UART_NUM_SERIAL_PORTS
6
#define HAL_UART_NUM_SERIAL_PORTS AP_HAL::HAL::num_serial
7
#endif
8
9
class SerialOptionsDev {
10
public:
11
SerialOptionsDev(void);
12
static const struct AP_Param::GroupInfo var_info[];
13
AP_Int32 options;
14
AP_Int8 rtscts;
15
};
16
17
class SerialOptions {
18
public:
19
friend class AP_Periph_FW;
20
SerialOptions(void);
21
void init(void);
22
23
static const struct AP_Param::GroupInfo var_info[];
24
25
private:
26
SerialOptionsDev devs[HAL_UART_NUM_SERIAL_PORTS];
27
};
28
29
30
#endif // HAL_PERIPH_ENABLE_SERIAL_OPTIONS
31
32