sub_errno

Top  Previous  Next
Got to SUB-20 page

Global variable sub_errno contains status of last SUB-20 API call. Variable sub_errno defined in libsub.h. Following error codes are available:

0

OK

1

SUB Device not found

2

Can't open SUB device

3

Can't set configuration

4

Can't claim interface

5

Failed to setup async transaction

6

Failed to submit async transaction

7

Bulk write failed

8

Bulk read failed

9

Bulk read incomplete

10

Out buffer overflow

11

I2C error

12

Wrong tag code in response

13

Wrong tag size in response

14

Wrong parameters

15

SPI Disabled

16

Feature not supported

17

Timeout

18

Init Failed

19

Bad Handle

20

InfraRed Failure