ev3duder  0.3.0
EV3 Downloader/Uploader
packets.c
Go to the documentation of this file.
1 
7  #include "packets.h"
8 
9 const BEGIN_DOWNLOAD
10 BEGIN_DOWNLOAD_INIT = { .hidLayer = 0x00, .replyType = 0x01, .cmd = 0x92 };
11 
13 CONTINUE_DOWNLOAD_INIT = { .hidLayer = 0x00, .replyType = 0x01, .cmd = 0x93};
14 
16 CONTINUE_DOWNLOAD_REPLY_SUCCESS = {.packetLen = 6, .type = 0x03, .cmd = 0x93, .ret = 0x08};
17 
18 const BEGIN_UPLOAD
19 BEGIN_UPLOAD_INIT = { .hidLayer = 0x00, .replyType = 0x01, .cmd = 0x94 };
20 
21 const CONTINUE_UPLOAD
22 CONTINUE_UPLOAD_INIT = { .hidLayer = 0x00, .packetLen = sizeof (CONTINUE_UPLOAD) - PREFIX_SIZE, .replyType = 0x01, .cmd = 0x95};
23 
24 const LIST_FILES
25 LIST_FILES_INIT = {.hidLayer = 0x00, .replyType = 0x01, .cmd = 0x99 };
26 
28 CONTINUE_LIST_FILES_INIT = {.hidLayer =0x00, .packetLen =7, .replyType = 0x01, .cmd = 0x9A};
29 
30 const BEGIN_GETFILE
31 BEGIN_GETFILE_INIT = {.hidLayer =0x00, .replyType = 0x01, .cmd = 0x96 };
32 
33 const CREATE_DIR
34 CREATE_DIR_INIT = {.hidLayer = 0x00, .replyType = 0x01, .cmd = 0x9B };
35 
36 const DELETE_FILE
37 DELETE_FILE_INIT = {.hidLayer = 0x00, .replyType = 0x01, .cmd = 0x9C };
38 
39 const BLUETOOTHPIN
40 BLUETOOTHPIN_INIT = {.hidLayer = 0x00, .replyType = 0x01, .cmd = 0x9F};
41 
42 const ENTERFWUPDATE
43 ENTERFWUPDATE_INIT = {.hidLayer = 0x00, .replyType = 0x00, .cmd = 0xA0};
44 
45 const EXECUTE_FILE
46 EXECUTE_FILE_INIT = {.hidLayer = 0x00, .replyType = 0x00, .alloc = 0x0800};
47 
48 const VM_REPLY
49 EXECUTE_FILE_REPLY_SUCCESS = {.packetLen = 3, .replyType = 0x02};
50 
const CONTINUE_UPLOAD CONTINUE_UPLOAD_INIT
Definition: packets.c:22
const ENTERFWUPDATE ENTERFWUPDATE_INIT
Definition: packets.c:43
const CREATE_DIR CREATE_DIR_INIT
Definition: packets.c:34
EV3_PACKET_FIELDS u8 replyType
Definition: packets.h:317
const EXECUTE_FILE EXECUTE_FILE_INIT
Definition: packets.c:46
const BEGIN_GETFILE BEGIN_GETFILE_INIT
Definition: packets.c:31
delete file
Definition: packets.h:241
const BEGIN_DOWNLOAD BEGIN_DOWNLOAD_INIT
Definition: packets.c:10
send file chunk wise
Definition: packets.h:101
const CONTINUE_DOWNLOAD_REPLY CONTINUE_DOWNLOAD_REPLY_SUCCESS
Definition: packets.c:16
const LIST_FILES LIST_FILES_INIT
Definition: packets.c:25
const BLUETOOTHPIN BLUETOOTHPIN_INIT
Definition: packets.c:40
create directory
Definition: packets.h:228
continue download from ev3
Definition: packets.h:140
const BEGIN_UPLOAD BEGIN_UPLOAD_INIT
Definition: packets.c:19
const CONTINUE_LIST_FILES CONTINUE_LIST_FILES_INIT
Definition: packets.c:28
packed structs for the packets.
base reply packet
Definition: packets.h:314
upload to EV3
Definition: packets.h:79
List files on EV3.
Definition: packets.h:166
const DELETE_FILE DELETE_FILE_INIT
Definition: packets.c:37
Th ev3's reply.
Definition: packets.h:92
download from EV3
Definition: packets.h:116
base packet for SYSTEM COMMANDS
Definition: packets.h:64
const VM_REPLY EXECUTE_FILE_REPLY_SUCCESS
Definition: packets.c:49
base packet
Definition: packets.h:285
const CONTINUE_DOWNLOAD CONTINUE_DOWNLOAD_INIT
Definition: packets.c:13
#define PREFIX_SIZE
Definition: packets.h:54