Line data Source code
1 : /** 2 : * @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved. 3 : * 4 : * @file toIcao.c 5 : * @author Jacob.Garrison 6 : * 7 : * @date Mar 9, 2021 8 : * 9 : */ 10 : 11 : #include "sgUtil.h" 12 : 13 : /* 14 : * Documented in the header file. 15 : */ 16 0 : uint32_t toIcao(const uint8_t bytes[]) 17 : { 18 0 : uint32_t icao = (0 << 24) | ((uint32_t)bytes[0] << 16) | ((uint32_t)bytes[1] << 8) | ((uint32_t)bytes[2]); 19 : 20 0 : return icao; 21 : }