22 #include "bspconfig.h"
38 #define BSP_BCP_INVALID 0
40 #define BSP_BCP_FIRST 1
43 #define BSP_BCP_ECHO_REQ 10
44 #define BSP_BCP_ECHO_REPLY 11
45 #define BSP_BCP_CURRENT_REQ 14
46 #define BSP_BCP_CURRENT_REPLY 16
47 #define BSP_BCP_VOLTAGE_REQ 18
48 #define BSP_BCP_VOLTAGE_REPLY 20
49 #define BSP_BCP_ENERGYMODE 22
50 #define BSP_BCP_STDOUT 24
51 #define BSP_BCP_STDERR 26
52 #define BSP_BCP_TEST 32
53 #define BSP_BCP_TEST_REPLY 33
54 #define BSP_BCP_NET_REQUEST 64
55 #define BSP_BCP_NET_REPLY 65
57 #define BSP_BCP_LAST 100
59 #define BSP_BCP_MAGIC 0xF1
64 #if ( ( BSP_BCP_VERSION == 1 ) || DOXY_DOC_ONLY )
68 #define BSP_BCP_PACKET_SIZe 30
70 #define BSP_BCP_PACKET_SIZE 30
90 #if ( ( BSP_BCP_VERSION == 2 ) || DOXY_DOC_ONLY )
92 #define BSP_BCP_PACKET_SIZE 132
117 #if ( ( BSP_BCP_VERSION != 1 ) && ( BSP_BCP_VERSION != 2 ) )
118 #error "BSP BCP Board Controller communications protocol version error."
121 #if ( BSP_BCP_PACKET_SIZE >= 255 )
122 #error "BSP BCP Board Controller communications packets must be less than 255 bytes in size!"
BCP Packet Structure - Board controller communication protocol version 1.
BCP Packet Structure - Board controller communication protocol version 2.
#define BSP_BCP_PACKET_SIZE