Revision 21076167 source/alld_vcnl4020.c

View differences:

source/alld_vcnl4020.c
63 63
 *
64 64
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
65 65
 */
66
inline apalExitStatus_t
67
vcnl4020_lld_readreg(const VCNL4020Driver* const vcnld, const vcnl4020_lld_regaddr_t reg, uint8_t* const data, const apalTime_t timeout)
66
apalExitStatus_t vcnl4020_lld_readreg(const VCNL4020Driver* const vcnld, const vcnl4020_lld_regaddr_t reg, uint8_t* const data, const apalTime_t timeout)
68 67
{
69 68
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
70 69
  apalDbgAssert(data != NULL);
......
81 80
 *
82 81
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
83 82
 */
84
inline apalExitStatus_t
85
vcnl4020_lld_writereg(const VCNL4020Driver* const vcnld, const vcnl4020_lld_regaddr_t reg, const uint8_t data, const apalTime_t timeout)
83
apalExitStatus_t vcnl4020_lld_writereg(const VCNL4020Driver* const vcnld, const vcnl4020_lld_regaddr_t reg, const uint8_t data, const apalTime_t timeout)
86 84
{
87 85
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
88 86

  
......
101 99
 *
102 100
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
103 101
 */
104
inline apalExitStatus_t
105
vcnl4020_lld_readals(const VCNL4020Driver* const vcnld, uint16_t* const als, const apalTime_t timeout)
102
apalExitStatus_t vcnl4020_lld_readals(const VCNL4020Driver* const vcnld, uint16_t* const als, const apalTime_t timeout)
106 103
{
107 104
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
108 105
  apalDbgAssert(als != NULL);
......
123 120
 *
124 121
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
125 122
 */
126
inline apalExitStatus_t
127
vcnl4020_lld_readprox(const VCNL4020Driver* const vcnld, uint16_t* const prox, const apalTime_t timeout)
123
apalExitStatus_t vcnl4020_lld_readprox(const VCNL4020Driver* const vcnld, uint16_t* const prox, const apalTime_t timeout)
128 124
{
129 125
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
130 126
  apalDbgAssert(prox != NULL);
......
146 142
 *
147 143
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
148 144
 */
149
inline apalExitStatus_t
150
vcnl4020_lld_readalsandprox(const VCNL4020Driver* const vcnld, uint16_t* const als, uint16_t* const prox, const apalTime_t timeout)
145
apalExitStatus_t vcnl4020_lld_readalsandprox(const VCNL4020Driver* const vcnld, uint16_t* const als, uint16_t* const prox, const apalTime_t timeout)
151 146
{
152 147
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
153 148
  apalDbgAssert(als != NULL);
......
174 169
 *
175 170
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
176 171
 */
177
inline apalExitStatus_t
178
vcnl4020_lld_readlth(const VCNL4020Driver* const vcnld, uint16_t* const th, const apalTime_t timeout)
172
apalExitStatus_t vcnl4020_lld_readlth(const VCNL4020Driver* const vcnld, uint16_t* const th, const apalTime_t timeout)
179 173
{
180 174
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
181 175
  apalDbgAssert(th != NULL);
......
196 190
 *
197 191
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
198 192
 */
199
inline apalExitStatus_t
200
vcnl4020_lld_readhth(const VCNL4020Driver* const vcnld, uint16_t* const th, const apalTime_t timeout)
193
apalExitStatus_t vcnl4020_lld_readhth(const VCNL4020Driver* const vcnld, uint16_t* const th, const apalTime_t timeout)
201 194
{
202 195
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
203 196
  apalDbgAssert(th != NULL);
......
219 212
 *
220 213
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
221 214
 */
222
inline apalExitStatus_t
223
vcnl4020_lld_readth(const VCNL4020Driver* const vcnld, uint16_t* const lth, uint16_t* const hth, const apalTime_t timeout)
215
apalExitStatus_t vcnl4020_lld_readth(const VCNL4020Driver* const vcnld, uint16_t* const lth, uint16_t* const hth, const apalTime_t timeout)
224 216
{
225 217
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
226 218
  apalDbgAssert(lth != NULL);
......
243 235
 *
244 236
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
245 237
 */
246
inline apalExitStatus_t
247
vcnl4020_lld_writelth(const VCNL4020Driver* const vcnld, const uint16_t th, const apalTime_t timeout)
238
apalExitStatus_t vcnl4020_lld_writelth(const VCNL4020Driver* const vcnld, const uint16_t th, const apalTime_t timeout)
248 239
{
249 240
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
250 241

  
......
261 252
 *
262 253
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
263 254
 */
264
inline apalExitStatus_t
265
vcnl4020_lld_writehth(const VCNL4020Driver* const vcnld, const uint16_t th, const apalTime_t timeout)
255
apalExitStatus_t vcnl4020_lld_writehth(const VCNL4020Driver* const vcnld, const uint16_t th, const apalTime_t timeout)
266 256
{
267 257
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
268 258

  
......
280 270
 *
281 271
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
282 272
 */
283
inline apalExitStatus_t
284
vcnl4020_lld_writeth(const VCNL4020Driver* const vcnld, const uint16_t lth, const uint16_t hth, const apalTime_t timeout)
273
apalExitStatus_t vcnl4020_lld_writeth(const VCNL4020Driver* const vcnld, const uint16_t lth, const uint16_t hth, const apalTime_t timeout)
285 274
{
286 275
  apalDbgAssert(vcnld != NULL && vcnld->i2cd != NULL);
287 276

  

Also available in: Unified diff