3 m1x66_setgpiodata, 4 m1x66_getgpiodata, M1x66_setgpiodata – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 23: M1x66_getgpiodata

Advertising
background image

UG_1x66B_046

73M1866B/73M1966B FXOAPI User Guide

Rev. 2.1

23

Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.


2.7.3 M1x66_SetGpioData

Description

This API writes data to a GPIO pin. This applies only to a GPIO configured with output direction. The
GPIO data signal (data) will be written to the selected GPIO pin.

Prototype

M1x66_RET M1x66_SetGpioData (M1x66_HANDLE chanHandle,
M1966_GPIO_NUMBER gpio,
M1966_GPIO_DATA_TYPE data)

Parameters

Data Type

Name

Description

M1x66_HANDLE

chanHandle

Channel handle from FXO open channel.

M1966_GPIO_NUMBER

gpio

GPIO number

M1966_GPIO_DATA_TYPE data

GPIO data signal to be written

Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.

2.7.4 M1x66_GetGpioData

Description

This is an API for reading data from a GPIO pin. This applies only to a GPIO configured with input
direction. The selected GPIO pin signal level will be read into the variable pointed to by the parameter
*data.

Prototype

M1x66_RET M1x66_GetGpioData (M1x66_HANDLE chanHandle,
M1966_GPIO_NUMBER gpio,
M1966_GPIO_DATA_TYPE *data)

Parameters

Data Type

Name

Description

M1x66_HANDLE

chanHandle

Channel handle from FXO open channel.

M1966_GPIO_NUMBER

gpio

GPIO number

M1966_GPIO_DATA_TYPE *data

Pointer to data signal read from the GPIO

Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.

Advertising