1: int32_t AG903_I2CMgrGetQueCount(
AG903_I2CMgrHandle* handle, uint32_t* count)
2: {
3: int32_t retval =
AG903_ENONE;
4: int32_t result;
5: uint32_t hdlnum;
6: uint8_t ch;
7:
8: result = I2CMgr_CheckHandle(handle, &ch, &hdlnum);
9:
if(
AG903_ENONE != result) {
10:
return -
AG903_EINVAL;
11: }
12:
if(NULL == count) {
13:
return -
AG903_EINVAL;
14: }
15:
16: retval = I2CMgr_GetQueCount(ch, count);
17:
18:
return retval;
19: }