Revision fe058578
source/PCAL6524/v1/alld_PCAL5624_v1.c | ||
---|---|---|
34 | 34 |
/* LOCAL DEFINITIONS */ |
35 | 35 |
/******************************************************************************/ |
36 | 36 |
|
37 |
#define _MAXIMUM_GROUP_SIZE 6
|
|
37 |
#define MAXIMUM_GROUP_SIZE 6
|
|
38 | 38 |
|
39 | 39 |
/******************************************************************************/ |
40 | 40 |
/* EXPORTED VARIABLES */ |
... | ... | |
224 | 224 |
apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL); |
225 | 225 |
apalDbgAssert(data != NULL); |
226 | 226 |
|
227 |
uint8_t txbuf[_MAXIMUM_GROUP_SIZE + 1] = {(uint8_t)reg};
|
|
227 |
uint8_t txbuf[MAXIMUM_GROUP_SIZE + 1] = {(uint8_t)reg}; |
|
228 | 228 |
memcpy(&txbuf[1], data, pcal6524_lld_cmd_groupsize(reg)); |
229 | 229 |
return apalI2CMasterTransmit(pcal6524d->i2cd, pcal6524d->addr, txbuf, pcal6524_lld_cmd_groupsize(reg) + 1, NULL, 0, timeout); |
230 | 230 |
} |
Also available in: Unified diff