BQ28Z610 Driver
BQ28Z610 Battery fuel gauge device driver for Arduino
|
Block Protocol contants. More...
#include <globals.h>
Static Public Attributes | |
static const int | REQUEST_MAX_SIZE = 32 |
The maximum number of bytes that can be obtained from the device in a single request. | |
static const int | PAYLOAD_MAX_SIZE = REQUEST_MAX_SIZE |
The maximum number of data bytes that can be obtained from the device in a single function call. | |
static const int | ADDR_SIZE = 2 |
Number of bytes for address, 2. | |
static const int | CHECKSUM_SIZE = 1 |
Number of bytes for Checksum, 1. | |
static const int | LENGTH_SIZE = 1 |
Number of bytes for Length, 1. | |
static const int | CHECKSUM_AND_LENGTH_SIZE = CHECKSUM_SIZE + LENGTH_SIZE |
Number of bytes for the Checksum and Length, 2. | |
static const int | SERVICE_SIZE = ADDR_SIZE + CHECKSUM_SIZE + LENGTH_SIZE |
Number of the service bytes (address, checksum, length), 4. | |
static const int | DATA_INDEX = 2 |
Index of the byte from which data starts. | |
static const int | CHECKSUM_INDEX = 34 |
The index of the byte that stores the checksum of the response. | |
static const int | LENGTH_INDEX = 35 |
The index of the byte that stores the total length of the response. | |
static const int | RESPONSE_MAX_SIZE = 36 |
Maximum size of the full response in bytes. | |
static const int | MAX = RESPONSE_MAX_SIZE |
Block Protocol contants.