public static uavcan_protocol_RestartNode_req ByteArrayToDroneCANMsg(byte[] transfer, int startoffset)
            {
                var ans = new uavcan_protocol_RestartNode_req();

                ans.decode(new DroneCAN.CanardRxTransfer(transfer.Skip(startoffset).ToArray()));
                return(ans);
            }
Exemple #2
0
        static void _encode_uavcan_protocol_RestartNode_req(uint8_t[] buffer, uavcan_protocol_RestartNode_req msg, dronecan_serializer_chunk_cb_ptr_t chunk_cb, object ctx, bool tao)
        {
            memset(buffer, 0, 8);

            canardEncodeScalar(buffer, 0, 40, msg.magic_number);

            chunk_cb(buffer, 40, ctx);
        }
Exemple #3
0
        static void _decode_uavcan_protocol_RestartNode_req(CanardRxTransfer transfer, ref uint32_t bit_ofs, uavcan_protocol_RestartNode_req msg, bool tao)
        {
            canardDecodeScalar(transfer, bit_ofs, 40, false, ref msg.magic_number);


            bit_ofs += 40;
        }
Exemple #4
0
        static uint32_t decode_uavcan_protocol_RestartNode_req(CanardRxTransfer transfer, uavcan_protocol_RestartNode_req msg)
        {
            uint32_t bit_ofs = 0;

            _decode_uavcan_protocol_RestartNode_req(transfer, ref bit_ofs, msg, true);
            return((bit_ofs + 7) / 8);
        }
Exemple #5
0
 static void encode_uavcan_protocol_RestartNode_req(uavcan_protocol_RestartNode_req msg, dronecan_serializer_chunk_cb_ptr_t chunk_cb, object ctx)
 {
     uint8_t[] buffer = new uint8_t[8];
     _encode_uavcan_protocol_RestartNode_req(buffer, msg, chunk_cb, ctx, true);
 }