Cubelets API Documentation
2.0
C API
Loading...
Searching...
No Matches
packet_types.h
Go to the documentation of this file.
1
4
#ifndef IMAGO_PACKET_TYPES_H
5
#define IMAGO_PACKET_TYPES_H
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
13
#define BOOTLOADER_MODE 0x00
17
#define APPLICATION_MODE 0x01
18
19
//Broadcast Packet Types
20
//Don't use 0xFF, reserved byte by parser
24
#define PT_BLOCK_VALUE 0x01
25
#define PT_BLOCK_ADDED 0x02
26
#define PT_BLOCK_REMOVED 0x03
27
28
/*Targeted Packet Types*/
29
#define PT_TARGETED_RANGE_BEGIN 0x70
30
#define PT_TARGETED_RANGE_END 0xFD
31
#define PT_TARGETED_REPLACE_END 0xA0
32
33
//Packet types that can be replaced in a targeted buffer
34
// ie: If there is a newer version of this packet, no need to send the older version
38
#define PT_SET_BLOCK_VALUE 0x70
39
43
#define PT_SET_LED 0x71
44
45
//Packet types that won't be replaced in the targeted buffer
49
#define PT_GET_CONFIG 0xA0
53
#define PT_GET_CONFIG_RESPONSE 0xA1
57
#define PT_GET_NEIGHBORS 0xA2
61
#define PT_GET_NEIGHBORS_RESPONSE 0xA3
65
#define PT_PING 0xA4
69
#define PT_PONG 0xA5
73
#define PT_WRITE_FLASH 0xA6
77
#define PT_WRITE_FLASH_RESPONSE 0xA7
81
#define PT_SET_MODE 0xA8
85
#define PT_SET_MODE_RESPONSE 0xAA
89
#define PT_FLASH_START 0xAB
93
#define PT_FLASH_START_RESPONSE 0xAC
94
95
96
#ifdef __cplusplus
97
}
98
#endif
99
#endif
packet_types.h
Generated on Thu Jan 30 2025 for Cubelets API Documentation by
1.11.0