2 ## This file is part of the libsigrokdecode project.
4 ## Copyright (C) 2022 Gerhard Sittig <gerhard.sittig@gmx.net>
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.
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.
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/>.
21 SBUS by Futaba, a hobby remote control protocol on top of UART.
22 Sometimes referred to as "Serial BUS" or S-BUS.
24 UART communication typically runs at 100kbps with 8e2 frame format and
25 inverted signals (high voltage level is logic low).
27 SBUS messages take 3ms to transfer, and typically repeat in intervals
28 of 7ms or 14ms. An SBUS message consists of 25 UART bytes, and carries
29 16 proportional channels with 11 bits each, and 2 digital channels
30 (boolean, 1 bit), and flags which represent current communication state.
31 Proportional channel values typically are in the 192..1792 range, but
32 individual implementations may differ.
35 from .pd
import Decoder