beautypg.com

ThingMagic Mercury xPRESS Platform v1.7 User Manual

Page 70

background image

Status Indication Through GPI Lines

A D I V I S I O N O F T R I M B L E

70

Using the Optional Modules



For the WiFi module, it is used to monitor association status and TCP connection

status

void GPIMGR_unregisterPin(uint32_t gpio_idx)



Used to unregister the GPI line that is being monitored

bool GPIMGR_getValue(uint32_t gpio_idx)



Used to get the GPI line current state

uint32_t GPIMGR_getTogglePeriodMs(uint32_t gpio_idx)



Used to get the current frequency of a pin’s blinking

void GPIMGR_addStateListener(uint32_t gpio_idx, void* gpio_handler)



Used to add listener call back for monitoring GPI line state changes