LCOV - code coverage report
Current view: top level - AP_ADSB/sagetech-sdk - uint322Buf.c (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 6 100.0 %
Date: 2026-09-09 11:02:08 Functions: 1 1 100.0 %

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

Generated by: LCOV version 1.14