bsp_bcp.h File Reference

Board Controller Communications Protocol (BCP) definitions. More...

#include <stdint.h>
Include dependency graph for bsp_bcp.h:

Go to the source code of this file.

Data Structures

struct  BCP_Packet_
 BCP Packet Structure - Board controller communication protocol version 1. More...
struct  BCP_Packet
 BCP Packet Structure - Board controller communication protocol version 2. More...
struct  BCP_PacketHeader
 BCP Packet Header definition. More...

Defines

#define BSP_BCP_INVALID   0
 Invalid packet received.
#define BSP_BCP_FIRST   1
 Smallest numerical value of message type.
#define BSP_BCP_ACK   5
 Generic ACK for one way packages.
#define BSP_BCP_ECHO_REQ   10
 EFM32 BC alive request.
#define BSP_BCP_ECHO_REPLY   11
 BC alive response.
#define BSP_BCP_CURRENT_REQ   14
 EFM32 Request AEM current.
#define BSP_BCP_CURRENT_REPLY   16
 BC Response AEM current.
#define BSP_BCP_VOLTAGE_REQ   18
 EFM32 Request AEM voltage.
#define BSP_BCP_VOLTAGE_REPLY   20
 BC Response AEM voltage.
#define BSP_BCP_ENERGYMODE   22
 EFM32 Report Energy Mode (for AEM).
#define BSP_BCP_STDOUT   24
 Debug packet (not used).
#define BSP_BCP_STDERR   26
 Debug packet (not used).
#define BSP_BCP_TEST   32
 Reserved type for test.
#define BSP_BCP_TEST_REPLY   33
 Reserved type for test (reply).
#define BSP_BCP_LAST   100
 Last defined message type.
#define BSP_BCP_MAGIC   0xF1
 Magic byte to indicate start of packet.
#define BSP_BCP_PACKET_SIZe   30
 Max packet size for version 1 of the protocol.
#define BSP_BCP_PACKET_SIZE   132
 Max packet size for version 2 of the protocol.

Detailed Description

Board Controller Communications Protocol (BCP) definitions.

Author:
Energy Micro AS
Version:
3.20.0

License

(C) Copyright 2013 Energy Micro AS, http://www.energymicro.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. 4. The source and compiled code may only be used on Energy Micro "EFM32" microcontrollers and "EFR4" radios.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no obligation to support this Software. Energy Micro AS is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Energy Micro AS will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file bsp_bcp.h.