APM:Libraries
libraries
AP_HAL_F4Light
RC_SBUS_parser.h
Go to the documentation of this file.
1
#pragma once
2
3
4
#include <
AP_HAL/HAL.h
>
5
6
#include "
RC_parser.h
"
7
#include "
RCInput.h
"
8
9
10
class
F4Light::SBUS_parser
:
public
F4Light::_parser
{
11
public
:
12
SBUS_parser
() {}
13
14
void
init
(uint8_t ch);
15
void
late_init
(uint8_t ch);
16
17
private
:
18
19
static
UARTDriver
*
uartSDriver
;
20
21
void
add_uart_input
();
// add some input bytes, for SBUS over a serial port
22
void
_io_completion
();
23
24
uint8_t
_ioc
;
25
26
// state of add_sbus_input
27
struct
SBUS
{
28
uint8_t
frame
[26];
29
uint8_t
partial_frame_count
;
30
uint32_t
last_input_uS
;
31
}
sbus
;
32
};
33
F4Light::SBUS_parser::uartSDriver
static UARTDriver * uartSDriver
Definition:
RC_SBUS_parser.h:19
F4Light::SBUS_parser::add_uart_input
void add_uart_input()
F4Light::SBUS_parser::SBUS::partial_frame_count
uint8_t partial_frame_count
Definition:
RC_SBUS_parser.h:29
F4Light::SBUS_parser::SBUS::last_input_uS
uint32_t last_input_uS
Definition:
RC_SBUS_parser.h:30
F4Light::_parser
Definition:
RC_parser.h:5
F4Light::SBUS_parser
Definition:
RC_SBUS_parser.h:10
F4Light::SBUS_parser::sbus
struct F4Light::SBUS_parser::SBUS sbus
HAL.h
F4Light::SBUS_parser::_ioc
uint8_t _ioc
Definition:
RC_SBUS_parser.h:24
F4Light::SBUS_parser::SBUS
Definition:
RC_SBUS_parser.h:27
F4Light::SBUS_parser::late_init
void late_init(uint8_t ch)
RC_parser.h
F4Light::SBUS_parser::init
void init(uint8_t ch)
F4Light::SBUS_parser::SBUS_parser
SBUS_parser()
Definition:
RC_SBUS_parser.h:12
RCInput.h
F4Light::SBUS_parser::_io_completion
void _io_completion()
F4Light::SBUS_parser::SBUS::frame
uint8_t frame[26]
Definition:
RC_SBUS_parser.h:28
F4Light::UARTDriver
Definition:
UARTDriver.h:27
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13