Revision 21076167 source/alld_pcal6524.c

View differences:

source/alld_pcal6524.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                                                         */
......
63 63
 *
64 64
 * @return    The size of the group in bytes.
65 65
 */
66
inline uint8_t pcal6524_lld_cmd_groupsize(const pcal6524_lld_cmd_t cmd)
66
uint8_t pcal6524_lld_cmd_groupsize(const pcal6524_lld_cmd_t cmd)
67 67
{
68 68
  switch (cmd) {
69 69
    case PCAL6524_LLD_CMD_OUTPUTCONFIGURATION:
......
142 142
// *
143 143
// * @return    Indicator whether the function call was successful or a timeout occurred.
144 144
// */
145
//inline apalExitStatus_t
146
//pcal6524_lld_read_id(const PCAL6524Driver* const pcal6524d, pcal6524_lld_deviceid_t* const info, const apalTime_t timeout)
145
//apalExitStatus_t pcal6524_lld_read_id(const PCAL6524Driver* const pcal6524d, pcal6524_lld_deviceid_t* const info, const apalTime_t timeout)
147 146
//{
148 147
//  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
149 148
//  apalDbgAssert(info != NULL);
......
162 161
 *
163 162
 * @return    Indicator whether the function call was successful or a timeout occurred.
164 163
 */
165
inline apalExitStatus_t
166
pcal6524_lld_read_reg(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const apalTime_t timeout)
164
apalExitStatus_t pcal6524_lld_read_reg(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const apalTime_t timeout)
167 165
{
168 166
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
169 167
  apalDbgAssert(data != NULL);
......
182 180
 *
183 181
 * @return    Indicator whether the function call was successful or a timeout occurred.
184 182
 */
185
inline apalExitStatus_t
186
pcal6524_lld_write_reg(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t data, const apalTime_t timeout)
183
apalExitStatus_t pcal6524_lld_write_reg(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t data, const apalTime_t timeout)
187 184
{
188 185
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
189 186

  
......
202 199
 *
203 200
 * @return    Indicator whether the function call was successful or a timeout occurred.
204 201
 */
205
inline apalExitStatus_t
206
pcal6524_lld_read_group(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const apalTime_t timeout)
202
apalExitStatus_t pcal6524_lld_read_group(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const apalTime_t timeout)
207 203
{
208 204
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
209 205
  apalDbgAssert(data != NULL);
......
223 219
 *
224 220
 * @return    Indicator whether the function call was successful or a timeout occurred.
225 221
 */
226
inline apalExitStatus_t
227
pcal6524_lld_write_group(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t* const data, const apalTime_t timeout)
222
apalExitStatus_t pcal6524_lld_write_group(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t* const data, const apalTime_t timeout)
228 223
{
229 224
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
230 225
  apalDbgAssert(data != NULL);
......
245 240
 *
246 241
 * @return    Indicator whether the function call was successful or a timeout occurred.
247 242
 */
248
inline apalExitStatus_t
249
pcal6524_lld_read_continuous(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const uint8_t length, const apalTime_t timeout)
243
apalExitStatus_t pcal6524_lld_read_continuous(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, uint8_t* const data, const uint8_t length, const apalTime_t timeout)
250 244
{
251 245
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
252 246
  apalDbgAssert(data != NULL);
......
267 261
 *
268 262
 * @return    Indicator whether the function call was successful or a timeout occurred.
269 263
 */
270
inline apalExitStatus_t
271
pcal6524_lld_write_continuous(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t* const data, const uint8_t length, const apalTime_t timeout)
264
apalExitStatus_t pcal6524_lld_write_continuous(const PCAL6524Driver* const pcal6524d, const pcal6524_lld_cmd_t reg, const uint8_t* const data, const uint8_t length, const apalTime_t timeout)
272 265
{
273 266
  apalDbgAssert(pcal6524d != NULL && pcal6524d->i2cd != NULL);
274 267
  apalDbgAssert(data != NULL);

Also available in: Unified diff