static void encode_uavcan_equipment_esc_RPMCommand(uavcan_equipment_esc_RPMCommand msg, uavcan_serializer_chunk_cb_ptr_t chunk_cb, object ctx)
 {
     uint8_t[] buffer = new uint8_t[8];
     _encode_uavcan_equipment_esc_RPMCommand(buffer, msg, chunk_cb, ctx, true);
 }
        static uint32_t decode_uavcan_equipment_esc_RPMCommand(CanardRxTransfer transfer, uavcan_equipment_esc_RPMCommand msg)
        {
            uint32_t bit_ofs = 0;

            _decode_uavcan_equipment_esc_RPMCommand(transfer, ref bit_ofs, msg, true);
            return((bit_ofs + 7) / 8);
        }
        static void _decode_uavcan_equipment_esc_RPMCommand(CanardRxTransfer transfer, ref uint32_t bit_ofs, uavcan_equipment_esc_RPMCommand msg, bool tao)
        {
            if (!tao)
            {
                canardDecodeScalar(transfer, bit_ofs, 5, false, ref msg.rpm_len);
                bit_ofs += 5;
            }
            else
            {
                msg.rpm_len = (uint8_t)(((transfer.payload_len * 8) - bit_ofs) / 18);
            }



            for (int i = 0; i < msg.rpm_len; i++)
            {
                canardDecodeScalar(transfer, bit_ofs, 18, true, ref msg.rpm[i]);

                bit_ofs += 18;
            }
        }