text: /*
   *
   * BSD 3-Clause License
   * 
   * Copyright 2020 NXP 
   * 
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions are met:
   * 
   * 1. Redistributions of source code must retain the above copyright notice, this
   *    list of conditions and the following disclaimer.
   * 
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *    this list of conditions and the following disclaimer in the documentation
   *    and/or other materials provided with the distribution.
   * 
   * 3. Neither the name of the copyright holder nor the names of its
   *    contributors may be used to endorse or promote products derived from
   *    this software without specific prior written permission.
   * 
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * UAVCAN data structure definition.
   *
   * AUTOGENERATED, DO NOT EDIT.
   *
   * Source File:
   * /home/cis/drones/s32k-bms/software/rddrone-bms772/src/nxp_bms/BMS_v1/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.uavcan
   *
   * Template:
   * StructureType.j2
   *
   * Generated at:  2020-11-06 10:23:19.059277 UTC
   * Is deprecated: no
   * Fixed port ID: None
   * Full name:     uavcan.primitive.array.Integer8
   * Version:       1.0
   *
   */
  
  #ifndef UAVCAN_PRIMITIVE_ARRAY_INTEGER8
  #define UAVCAN_PRIMITIVE_ARRAY_INTEGER8
  #include <canard_dsdl.h>
  
  
  #define UAVCAN_PRIMITIVE_ARRAY_INTEGER8_MSG_SIZE 258
  
  
  
  typedef struct uavcan_primitive_array_integer8Type
  {
  	saturated_int8_ value;
  } uavcan_primitive_array_integer8;
  
  void uavcan_primitive_array_integer8_serializeToBuffer(uavcan_primitive_array_integer8* msg, uint8_t* const buffer, const size_t starting_bit)
  {
      saturated_int8__serializeToBuffer(&msg->value, buffer, starting_bit + 0);
  }
  
  void uavcan_primitive_array_integer8_deserializeFromBuffer(uavcan_primitive_array_integer8* msg, const uint8_t* const buffer, const size_t buf_size, const size_t starting_bit)
  {
  
          
          saturated_int8__deserializeFromBuffer(&msg->value, buffer, buf_size, starting_bit + 0);
  
      return msg;
  }
  
  #endif // UAVCAN_PRIMITIVE_ARRAY_INTEGER8
  