ev3duder
0.3.0
EV3 Downloader/Uploader
|
packed structs for the packets. More...
#include "defs.h"
Go to the source code of this file.
Data Structures | |
struct | SYSTEM_CMD |
base packet for SYSTEM COMMANDS More... | |
struct | SYSTEM_REPLY |
base packet for SYSTEM REPLIES More... | |
struct | BEGIN_DOWNLOAD |
upload to EV3 More... | |
struct | BEGIN_DOWNLOAD_REPLY |
Th ev3's reply. More... | |
struct | CONTINUE_DOWNLOAD |
send file chunk wise More... | |
struct | BEGIN_UPLOAD |
download from EV3 More... | |
struct | BEGIN_UPLOAD_REPLY |
download from EV3 reply More... | |
struct | CONTINUE_UPLOAD |
continue download from ev3 More... | |
struct | CONTINUE_UPLOAD_REPLY |
continue download from ev3 reply More... | |
struct | LIST_FILES |
List files on EV3. More... | |
struct | LIST_FILES_REPLY |
Directory contents on EV3. More... | |
struct | CONTINUE_LIST_FILES |
struct | CONTINUE_LIST_FILES_REPLY |
struct | CREATE_DIR |
create directory More... | |
struct | DELETE_FILE |
delete file More... | |
struct | BLUETOOTHPIN_REPLY |
untested and unused More... | |
struct | VM_CMD |
base packet More... | |
struct | VM_REPLY |
base reply packet More... | |
Macros | |
#define | HID_LAYER u8 hidLayer; |
Is always zero. Also called HID report ID. More... | |
#define | EV3_PACKET_FIELDS |
#define | EV3_COMMAND_FIELDS |
#define | EV3_REPLY_FIELDS |
#define | PREFIX_SIZE 3 |
#define | EV3_VM_COMMAND_FIELDS |
VM stuff. More... | |
#define | packet_alloc(type, extra) |
Typedefs | |
typedef BEGIN_DOWNLOAD_REPLY | CONTINUE_DOWNLOAD_REPLY |
typedef LIST_FILES | BEGIN_GETFILE |
typedef SYSTEM_REPLY | CREATE_DIR_REPLY |
typedef SYSTEM_REPLY | DELETE_FILE_REPLY |
typedef SYSTEM_CMD | BLUETOOTHPIN |
set bluetooth pin, untested More... | |
typedef SYSTEM_CMD | ENTERFWUPDATE |
Force brick into Firmware update mode, untested and unused. More... | |
typedef VM_CMD | EXECUTE_FILE |
Variables | |
const BEGIN_DOWNLOAD | BEGIN_DOWNLOAD_INIT |
const CONTINUE_DOWNLOAD | CONTINUE_DOWNLOAD_INIT |
const CONTINUE_DOWNLOAD_REPLY | CONTINUE_DOWNLOAD_REPLY_SUCCESS |
const CONTINUE_UPLOAD | CONTINUE_UPLOAD_INIT |
const BEGIN_UPLOAD | BEGIN_UPLOAD_INIT |
const LIST_FILES | LIST_FILES_INIT |
const BEGIN_GETFILE | BEGIN_GETFILE_INIT |
const CONTINUE_LIST_FILES | CONTINUE_LIST_FILES_INIT |
const CREATE_DIR | CREATE_DIR_INIT |
const DELETE_FILE | DELETE_FILE_INIT |
const BLUETOOTHPIN | BLUETOOTHPIN_INIT |
const ENTERFWUPDATE | ENTERFWUPDATE_INIT |
const EXECUTE_FILE | EXECUTE_FILE_INIT |
const VM_REPLY | EXECUTE_FILE_REPLY_SUCCESS |
packed structs for the packets.
Definition in file packets.h.
#define EV3_COMMAND_FIELDS |
replyType defines whether client demands answer. (Yes he always does) cmd packet id, is set by specifing correct data type in packet_alloc(). Manual handling is not intended, therefore in #define
#define EV3_PACKET_FIELDS |
packetLen isn't supposed to be handled outside of packet_alloc(), therefore abstracted into a #define msgCount might (?) be used for checking dropped or out-of-order packets. Which would be pointless as TCP and RFCOMM both guarantee reliability anyway
#define EV3_REPLY_FIELDS |
#define EV3_VM_COMMAND_FIELDS |
#define HID_LAYER u8 hidLayer; |
#define packet_alloc | ( | type, | |
extra | |||
) |
for variably sized packets. Allocates space, initializes and adjusts packetLen field
#define PREFIX_SIZE 3 |
bytes not covered by packetLen (3B = 1B hidLayer + 2B packetLen itself)
typedef LIST_FILES BEGIN_GETFILE |
typedef SYSTEM_CMD BLUETOOTHPIN |
typedef SYSTEM_REPLY CREATE_DIR_REPLY |
typedef SYSTEM_REPLY DELETE_FILE_REPLY |
typedef SYSTEM_CMD ENTERFWUPDATE |
typedef VM_CMD EXECUTE_FILE |
const BEGIN_DOWNLOAD BEGIN_DOWNLOAD_INIT |
const BEGIN_GETFILE BEGIN_GETFILE_INIT |
const BEGIN_UPLOAD BEGIN_UPLOAD_INIT |
const BLUETOOTHPIN BLUETOOTHPIN_INIT |
const CONTINUE_DOWNLOAD CONTINUE_DOWNLOAD_INIT |
const CONTINUE_DOWNLOAD_REPLY CONTINUE_DOWNLOAD_REPLY_SUCCESS |
const CONTINUE_LIST_FILES CONTINUE_LIST_FILES_INIT |
const CONTINUE_UPLOAD CONTINUE_UPLOAD_INIT |
const CREATE_DIR CREATE_DIR_INIT |
const DELETE_FILE DELETE_FILE_INIT |
const ENTERFWUPDATE ENTERFWUPDATE_INIT |
const EXECUTE_FILE EXECUTE_FILE_INIT |
const LIST_FILES LIST_FILES_INIT |