Updated on 2022-02-24 GMT+08:00

Data Types

4.1 Common Data Types

Type Name

Standard Type Name

HW_INT

int

HW_UINT

unsigned int

HW_CHAR

char

HW_UCHAR

unsigned char

HW_BOOL

int

HW_ULONG

unsigned long

HW_USHORT

unsigned short

HW_MSG

void*

HW_VOID

void

HW_NULL

0

4.2 Function Return Values

Return Value Name

Value

Standard Type Name

HW_OK

0

Execution succeeded

HW_ERR

1

Execution error

HW_ERR_PTR

2

Incorrect pointer

HW_ERR_ID

3

Incorrect ID

HW_ERR_PARA

4

Incorrect parameter

HW_ERR_KEY

5

Incorrect key

HW_ERR_NOMEM

6

Insufficient memory.

HW_ERR_MAGIC

7

Reserved

HW_ERR_OVERFLOW

8

Overflow

HW_ERR_GVAR

9

Reserved

HW_ERR_POOL

10

Reserved

HW_ERR_NO_MUTEX

11

Unlocked

HW_ERR_PID

12

Reserved

HW_ERR_FILEOPEN

13

Failed to open the file

HW_ERR_FD

14

Incorrect file description

HW_ERR_SOCKET

15

Abnormal socket

HW_ERR_NOTSUPPORT

16

Unsupported

HW_ERR_NOTLOAD

17

Not loaded

HW_ERR_ENCODE

18

Encoding error

HW_ERR_DECODE

19

Decoding error

HW_ERR_CALLBACK

22

Incorrect callback function

HW_ERR_STATE

23

Incorrect status

HW_ERR_OVERTIMES

24

Exceeded maximum number of retries

HW_ERR_ENDOVER

25

Reserved

HW_ERR_ENDLINE

26

Reserved

HW_ERR_NUMBER

27

Incorrect number

HW_ERR_NOMATCH

28

Mismatched

HW_ERR_NOSTART

29

Not started

HW_ERR_NOEND

30

Not ended

HW_ERR_OVERLAP

31

Reserved

HW_ERR_DROP

32

Discarded

HW_ERR_NODATA

33

No data

HW_ERR_CRC_CHK

34

CRC failed

HW_ERR_AUTH

35

Authentication failed

HW_ERR_LENGTH

36

Incorrect length

HW_ERR_NOTALLOW

37

Operation not allowed

HW_ERR_TOKEN

38

Incorrect token

HW_ERR_NOTIPV4

39

IPv4 unsupported

HW_ERR_NOTIPV6

40

IPv6 unsupported

HW_ERR_IELOST

41

Reserved

HW_ERR_IELOST1

42

Reserved

HW_ERR_IELOST2

43

Reserved

HW_ERR_AUDIO

44

Reserved

HW_ERR_VIDEO

45

Reserved

HW_ERR_MD5

46

Reserved

HW_ERR_MD5_HA1

47

Reserved

HW_ERR_MD5_RES

48

Reserved

HW_ERR_DIALOG

49

Incorrect dialog

HW_ERR_OBJ

50

Incorrect object