Gpio, Set_gpo(int pin, int value) – Acrosser AES-HM76Z1FL User Manual

Page 63

Advertising
background image

63

8.2.2. GPIO

1

Syntax:

get_gpi_status(int pin)

Description: Get the status of GPIO input pins status.

Parameters:

This function takes an integral variable as the parameter.

The pin0 ~ 7 is pins.

Return Value: 1:HIGH, 0:LOW.

2

Syntax:

get_gpo_status(int pin)

Description: Get the status of GPIO output pins status.

Parameters:

This function takes an integral variable as the parameter.

The pin0 ~ 7 is pins.

Return Value: 1:HIGH, 0:LOW.

3

Syntax:

set_gpo(int pin, int value)

Description: Set the status of GPIO Output value.

Parameters:

Set value 0 is Low, 1 is High(Linux)

Return Value: None

Advertising