static void _decode_uavcan_protocol_file_GetInfo_res(CanardRxTransfer transfer, ref uint32_t bit_ofs, uavcan_protocol_file_GetInfo_res msg, bool tao)
        {
            canardDecodeScalar(transfer, bit_ofs, 40, false, ref msg.size);


            bit_ofs += 40;



            _decode_uavcan_protocol_file_Error(transfer, ref bit_ofs, msg.error, false);



            _decode_uavcan_protocol_file_EntryType(transfer, ref bit_ofs, msg.entry_type, tao);
        }
Exemple #2
0
 static void encode_uavcan_protocol_file_GetInfo_res(uavcan_protocol_file_GetInfo_res msg, uavcan_serializer_chunk_cb_ptr_t chunk_cb, object ctx)
 {
     uint8_t[] buffer = new uint8_t[8];
     _encode_uavcan_protocol_file_GetInfo_res(buffer, msg, chunk_cb, ctx, true);
 }
        static uint32_t decode_uavcan_protocol_file_GetInfo_res(CanardRxTransfer transfer, uavcan_protocol_file_GetInfo_res msg)
        {
            uint32_t bit_ofs = 0;

            _decode_uavcan_protocol_file_GetInfo_res(transfer, ref bit_ofs, msg, true);
            return((bit_ofs + 7) / 8);
        }