Maxim-integrated 73M1866B/73M1966B FXOAPI Instrukcja Użytkownika Strona 23

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 66
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 22
UG_1x66B_046 73M1866B/73M1966B FXOAPI User Guide
Rev. 2.1 23
Return Values
Data Type Description
M1x66_RET
M1x66_SUCCESSSuccessful.
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_SUCCESSSuccessful.
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_SUCCESSSuccessful.
M1x66_FAILED – Failure.
Przeglądanie stron 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 65 66

Komentarze do niniejszej Instrukcji

Brak uwag