beautypg.com

I-button – Acrosser AIV-HM76V1FL User Manual

Page 62

background image

AIV-HM76V1FL Series User Manual

62

Acrosser Technology Co., Ltd.

Syntax:

i32 getShutdownDelay(u32 *val)

Description:

This function gets the Shutdown delay.

Parameters:

This function takes a pointer to an unsigned long variable

as the parameter. The delay time will be put at the memory

which is pointed by the parameter ‘val’.

Return Value:

If this function works successfully, the function returns 0,

any other value stands for error.

Syntax:

i32 setShutdownDelay(u32 val)

Description:

This function sets the Shutdown delay.

Parameters:

This function takes an unsigned long variable as the

parameter. The range of the delay is 120 ~ 3600 seconds.

Return Value:

If this function works successfully, the function returns 0,

any other value stands for error.

5.2.4. I-Button

Syntax:

i32 resetIbutt(void)

Description:

This function resets the I-Button.

Parameters:

None

Return Value:

If this function works successfully, the function returns 0,

any other value stands for error.

Syntax:

i32 readIbutt(u8 *data)

Description:

This function reads data from the I-Button.

Parameters:

This function takes a pointer to an unsigned char variable.

The data to be read from the I-Button is put at the memory

which is pointed by the parameter ‘data’.

Return Value:

If this function works successfully, the function returns 0,

any other value stands for error.

Syntax:

i32 writeIbutt(u8 data)

Description:

This function writes command to the I-Button.

Parameters:

This function takes an unsigned char variable as the

parameter. The command to be written to the I-Button is

the value of the parameter ‘data’.

Return Value:

If this function works successfully, the function returns 0,

any other value stands for error.