]> sigrok.org Git - libsigrokdecode.git/blame - decoders/sbus_futaba/__init__.py
sbus_futaba: add decoder for SBUS hobby remote control by Futaba
[libsigrokdecode.git] / decoders / sbus_futaba / __init__.py
CommitLineData
f0356672
GS
1##
2## This file is part of the libsigrokdecode project.
3##
4## Copyright (C) 2022 Gerhard Sittig <gerhard.sittig@gmx.net>
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 2 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program; if not, see <http://www.gnu.org/licenses/>.
18##
19
20'''
21SBUS by Futaba, a hobby remote control protocol on top of UART.
22Sometimes referred to as "Serial BUS" or S-BUS.
23
24UART communication typically runs at 100kbps with 8e2 frame format and
25inverted signals (high voltage level is logic low).
26
27SBUS messages take 3ms to transfer, and typically repeat in intervals
28of 7ms or 14ms. An SBUS message consists of 25 UART bytes, and carries
2916 proportional channels with 11 bits each, and 2 digital channels
30(boolean, 1 bit), and flags which represent current communication state.
31Proportional channel values typically are in the 192..1792 range, but
32individual implementations may differ.
33'''
34
35from .pd import Decoder