Merge remote-tracking branch 'origin/master' into mmosca-mavlinkrc
[inav.git] / src / main / blackbox / blackbox_encoding.h
blob1293ed45cea541098dfd609f9a795bcd81903e73
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 int blackboxPrintf(const char *fmt, ...);
21 void blackboxPrintfHeaderLine(const char *name, const char *fmt, ...);
22 int blackboxPrint(const char *s);
24 void blackboxWriteUnsignedVB(uint32_t value);
25 void blackboxWriteSignedVB(int32_t value);
26 void blackboxWriteSignedVBArray(int32_t *array, int count);
27 void blackboxWriteSigned16VBArray(int16_t *array, int count);
28 void blackboxWriteS16(int16_t value);
29 void blackboxWriteTag2_3S32(int32_t *values);
30 void blackboxWriteTag8_4S16(int32_t *values);
31 void blackboxWriteTag8_8SVB(int32_t *values, int valueCount);
32 void blackboxWriteU32(int32_t value);
33 void blackboxWriteFloat(float value);