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/libraries/AP_ADSB/sagetech-sdk/uint162Buf.c
Views: 1799
1
/**
2
* @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved.
3
*
4
* @file uint162Buf.c
5
* @author Jacob.Garrison
6
*
7
* @date Mar 2, 2021
8
*
9
*/
10
11
#include "sgUtil.h"
12
13
/*
14
* Documented in the header file.
15
*/
16
void uint162Buf(uint8_t *bufferPos, uint16_t value)
17
{
18
bufferPos[0] = value >> 8;
19
bufferPos[1] = value & 0xFF;
20
}
21
22