Cubelets API Documentation 2.0
C API
Loading...
Searching...
No Matches
packet_types.h File Reference

Go to the source code of this file.

Macros

#define BOOTLOADER_MODE   0x00
 
#define APPLICATION_MODE   0x01
 
#define PT_BLOCK_VALUE   0x01
 
#define PT_SET_BLOCK_VALUE   0x70
 
#define PT_SET_LED   0x71
 
#define PT_GET_CONFIG   0xA0
 
#define PT_GET_CONFIG_RESPONSE   0xA1
 
#define PT_GET_NEIGHBORS   0xA2
 
#define PT_GET_NEIGHBORS_RESPONSE   0xA3
 
#define PT_PING   0xA4
 
#define PT_PONG   0xA5
 
#define PT_WRITE_FLASH   0xA6
 
#define PT_WRITE_FLASH_RESPONSE   0xA7
 
#define PT_SET_MODE   0xA8
 
#define PT_SET_MODE_RESPONSE   0xAA
 
#define PT_FLASH_START   0xAB
 
#define PT_FLASH_START_RESPONSE   0xAC
 

Macro Definition Documentation

◆ BOOTLOADER_MODE

#define BOOTLOADER_MODE   0x00

Bootloader mode

◆ APPLICATION_MODE

#define APPLICATION_MODE   0x01

Application mode

◆ PT_BLOCK_VALUE

#define PT_BLOCK_VALUE   0x01

Packet type for block value packets

◆ PT_SET_BLOCK_VALUE

#define PT_SET_BLOCK_VALUE   0x70

PT_SET_BLOCK_VALUE

◆ PT_SET_LED

#define PT_SET_LED   0x71

PT_SET_LED

◆ PT_GET_CONFIG

#define PT_GET_CONFIG   0xA0

PT_GET_CONFIG

◆ PT_GET_CONFIG_RESPONSE

#define PT_GET_CONFIG_RESPONSE   0xA1

PT_GET_CONFIG_RESPONSE

◆ PT_GET_NEIGHBORS

#define PT_GET_NEIGHBORS   0xA2

PT_GET_NEIGHBORS

◆ PT_GET_NEIGHBORS_RESPONSE

#define PT_GET_NEIGHBORS_RESPONSE   0xA3

PT_GET_NEIGHBORS_RESPONSE

◆ PT_PING

#define PT_PING   0xA4

PT_PING

◆ PT_PONG

#define PT_PONG   0xA5

PT_PONG

◆ PT_WRITE_FLASH

#define PT_WRITE_FLASH   0xA6

PT_WRITE_FLASH

◆ PT_WRITE_FLASH_RESPONSE

#define PT_WRITE_FLASH_RESPONSE   0xA7

PT_WRITE_FLASH_RESPONSE

◆ PT_SET_MODE

#define PT_SET_MODE   0xA8

PT_SET_MODE

◆ PT_SET_MODE_RESPONSE

#define PT_SET_MODE_RESPONSE   0xAA

PT_SET_MODE_RESPONSE

◆ PT_FLASH_START

#define PT_FLASH_START   0xAB

PT_FLASH_START

◆ PT_FLASH_START_RESPONSE

#define PT_FLASH_START_RESPONSE   0xAC

PT_FLASH_START_RESPONSE