Line data Source code
1 : /** 2 : * @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved. 3 : * 4 : * @file icao2Buf.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 4 : void icao2Buf(uint8_t *bufferPos, uint32_t icao) 17 : { 18 4 : bufferPos[0] = (icao & 0x00FF0000) >> 16; 19 4 : bufferPos[1] = (icao & 0x0000FF00) >> 8; 20 4 : bufferPos[2] = (icao & 0x000000FF); 21 4 : }