29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
40 struct link_device *
dev;
76 case DL_EMERGENCY_CMD:
102 #if PPRZLINK_DEFAULT_VER == 2
103 struct pprzlink_msg pmsg;
106 pmsg.sender_id =
ac_id;
107 pmsg.receiver_id = 0;
108 pmsg.component_id = 0;
110 trans->count_bytes(&pmsg, size);
111 trans->start_message(&pmsg, _FD, size);
112 trans->put_bytes(&pmsg, _FD, DL_TYPE_UINT8, DL_FORMAT_ARRAY, (
void *)
msg, size);
113 trans->end_message(&pmsg, _FD);
115 trans->count_bytes(trans->impl,
dev, trans->size_of(trans->impl, size));
116 trans->start_message(trans->impl,
dev, 0, size);
117 trans->put_bytes(trans->impl,
dev, 0, DL_TYPE_UINT8, DL_FORMAT_ARRAY, (
void *)
msg, size);
118 trans->end_message(trans->impl,
dev, 0);