![]() |
![]() |
|
TI-OpenThread
1.08.03.09
|
Include dependency graph for LP_CC2652RSIP/thread/thermostat/tiop_ui.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | processKeyChangeCB (Button_Handle _buttonHandle, Button_EventMask _buttonEvents) |
| Handles the key pressed events for examples. More... | |
| void | processMenuUpdateFn (void) |
| Handles CUI Menu update events for examples. More... | |
| void | tiopCUIInit (char *appString, Button_Handle *rightButtonHandle) |
| Initialize example CUI functionality. More... | |
| void | tiopCUINwkReset (const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo) |
| Reset the OpenThread Instance as well as clear out the previous network data. CUI function type that is called when the Nwk reset menu option is selected in the Example CUI menu. More... | |
| void | tiopCUIReset (const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo) |
| Reset the OpenThread Instance without clearing out previous network data. CUI function type that is called when the reset menu option is selected in the Example CUI menu. More... | |
| void | tiopCUIUpdateApp (char *appInfo) |
| Update Application specific CUI output line. More... | |
| void | tiopCUIUpdateChannel (uint8_t ch) |
| Update channel CUI output. More... | |
| void | tiopCUIUpdateConnStatus (cuiConn status) |
| Update connection status CUI output line. More... | |
| void | tiopCUIUpdateDeviceInfo (void) |
| Update device info CUI output line. More... | |
| void | tiopCUIUpdateExtPANID (otExtendedPanId extPan) |
| Update Extended panid CUI output. More... | |
| void | tiopCUIUpdateMasterkey (otMasterKey key) |
| Update masterkey CUI output. More... | |
| void | tiopCUIUpdateNwkName (const char *name) |
| Update network name CUI output. More... | |
| void | tiopCUIUpdatePANID (otPanId pan) |
| Update panid CUI output. More... | |
| void | tiopCUIUpdateRole (otDeviceRole role) |
| Update device role CUI output line. More... | |
| void | tiopCUIUpdateShortAddr (otShortAddress s) |
| Update short address CUI output. More... | |
| void | uiActionAttach (const int32_t _itemEntry) |
| Handles attach menu option event for examples. More... | |
| void | uiActionJoin (const int32_t _itemEntry) |
| Handles join menu option event for examples. More... | |
| void | uiActionProcessConfigureChannel (const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo) |
| Handle reading user input into the channel configuration in CUI. More... | |
| void | uiActionProcessConfigurePanId (const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo) |
| Handle reading user input into the panid configuration in CUI. More... | |
| enum cuiConn |
Connection status
| void tiopCUIInit | ( | char * | appString, |
| Button_Handle * | rightButtonHandle | ||
| ) |
Initialize example CUI functionality.
| rightButtonHandle | a pointer to the button handle to be filled for the application |
| appString | contains the application specific string to be output |
documented in tiop_ui.h
References appInfoLine, clientHandle, CUI_clientParams_t::clientName, connStatusLine, CUI_clientOpen(), CUI_clientParamsInit(), CUI_conn_disabled, CUI_init(), CUI_paramsInit(), CUI_registerMenu(), CUI_statusLineResourceRequest(), deviceInfoLine, deviceRoleLine, display_channel, extAddress, extPanId, greenLedHandle, CUI_params_t::manageUart, masterkey, MAX_CLIENT_NAME_LEN, CUI_clientParams_t::maxStatusLines, nwkInfoLine1, nwkInfoLine2, nwkInfoLine3, nwkName, OtInstance_get(), OtRtosApi_lock(), OtRtosApi_unlock(), panid, processKeyChangeCB(), redLedHandle, shortAddr, tiopCUIUpdateApp(), tiopCUIUpdateConnStatus(), tiopCUIUpdateDeviceInfo(), tiopCUIUpdateMasterkey(), tiopCUIUpdateNwkName(), tiopCUIUpdatePANID(), and tiopCUIUpdateRole().
Referenced by DoorLock_task(), empty_task(), Shade_task(), TempSensor_task(), and Thermostat_task().
| void tiopCUIUpdateRole | ( | otDeviceRole | role | ) |
Update device role CUI output line.
| role | contains the role the device is in the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RED, CUI_COLOR_RESET, CUI_statusLinePrintf(), deviceRoleLine, greenLedHandle, and redLedHandle.
Referenced by processEvent(), and tiopCUIInit().
| void tiopCUIUpdateDeviceInfo | ( | void | ) |
Update device info CUI output line.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RED, CUI_COLOR_RESET, CUI_statusLinePrintf(), deviceInfoLine, and extAddress.
Referenced by tiopCUIInit().
| void tiopCUIUpdatePANID | ( | otPanId | pan | ) |
Update panid CUI output.
| pan | contains the panid for the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
Referenced by processEvent(), tiopCUIInit(), and uiActionProcessConfigurePanId().
| void tiopCUIUpdateChannel | ( | uint8_t | ch | ) |
Update channel CUI output.
| ch | contains the channel for the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
Referenced by processEvent(), and uiActionProcessConfigureChannel().
| void tiopCUIUpdateShortAddr | ( | otShortAddress | s | ) |
Update short address CUI output.
| s | contains the short address for the device |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
Referenced by processEvent().
| void tiopCUIUpdateMasterkey | ( | otMasterKey | key | ) |
Update masterkey CUI output.
| key | contains the masterkey for the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), masterkey, and nwkInfoLine2.
Referenced by processEvent(), and tiopCUIInit().
| void tiopCUIUpdateExtPANID | ( | otExtendedPanId | extPan | ) |
Update Extended panid CUI output.
| extPan | contains the extended pan id for the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), extPanId, nwkInfoLine1, and nwkName.
Referenced by processEvent().
| void tiopCUIUpdateNwkName | ( | const char * | name | ) |
Update network name CUI output.
| name | contains the name of the network |
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), extPanId, nwkInfoLine1, and nwkName.
Referenced by processEvent(), and tiopCUIInit().
| void tiopCUIUpdateConnStatus | ( | cuiConn | status | ) |
Update connection status CUI output line.
| status | contains the connection status for the device to the network |
documented in tiop_ui.h
References clientHandle, connStatusLine, CUI_COLOR_RED, CUI_COLOR_RESET, CUI_conn_disabled, CUI_conn_join_fail, CUI_conn_joined, CUI_conn_joining, and CUI_statusLinePrintf().
Referenced by processEvent(), and tiopCUIInit().
| void tiopCUIUpdateApp | ( | char * | appInfo | ) |
Update Application specific CUI output line.
| appInfo | contains the application specific string to be output |
documented in tiop_ui.h
References appInfoLine, clientHandle, and CUI_statusLinePrintf().
Referenced by processEvent(), and tiopCUIInit().
| void uiActionProcessConfigurePanId | ( | const char | _input, |
| char * | _pLines[3], | ||
| CUI_cursorInfo_t * | _pCurInfo | ||
| ) |
Handle reading user input into the panid configuration in CUI.
documented in tiop_ui.h
References CUI_cursorInfo_t::col, CUI_INPUT_DOWN, CUI_INPUT_EXECUTE, CUI_INPUT_LEFT, CUI_INPUT_RIGHT, CUI_INPUT_UP, CUI_IS_INPUT_HEX, CUI_ITEM_INTERCEPT_START, CUI_ITEM_INTERCEPT_STOP, CUI_ITEM_PREVIEW, OtInstance_get(), OtRtosApi_lock(), OtRtosApi_unlock(), CUI_cursorInfo_t::row, and tiopCUIUpdatePANID().
| void uiActionProcessConfigureChannel | ( | const char | _input, |
| char * | _pLines[3], | ||
| CUI_cursorInfo_t * | _pCurInfo | ||
| ) |
Handle reading user input into the channel configuration in CUI.
documented in tiop_ui.h
References CUI_cursorInfo_t::col, CUI_INPUT_DOWN, CUI_INPUT_EXECUTE, CUI_INPUT_LEFT, CUI_INPUT_RIGHT, CUI_INPUT_UP, CUI_IS_INPUT_NUM, CUI_ITEM_INTERCEPT_START, CUI_ITEM_INTERCEPT_STOP, CUI_ITEM_PREVIEW, display_channel, OtInstance_get(), OtRtosApi_lock(), OtRtosApi_unlock(), CUI_cursorInfo_t::row, and tiopCUIUpdateChannel().
| void uiActionAttach | ( | const int32_t | _itemEntry | ) |
Handles attach menu option event for examples.
| void uiActionJoin | ( | const int32_t | _itemEntry | ) |
Handles join menu option event for examples.
| void processKeyChangeCB | ( | Button_Handle | _buttonHandle, |
| Button_EventMask | _buttonEvents | ||
| ) |
Handles the key pressed events for examples.
Handles the key pressed events for examples.
| _buttonHandle | identifies which keys were pressed |
| _buttonEvents | identifies the event that occurred on the key |
References app_postEvt(), DoorLock_evtKeyRight, Empty_evtKeyRight, Empty_postEvt(), rightButtonHandle, Shade_evtKeyRight, Shade_postEvt(), TempSensor_evtKeyRight, TempSensor_postEvt(), Thermostat_evtKeyRight, and Thermostat_postEvt().
Referenced by DoorLock_task(), setupCoapServer(), and tiopCUIInit().
| void processMenuUpdateFn | ( | void | ) |
Handles CUI Menu update events for examples.
| void tiopCUINwkReset | ( | const char | _input, |
| char * | _pLines[3], | ||
| CUI_cursorInfo_t * | _pCurInfo | ||
| ) |
Reset the OpenThread Instance as well as clear out the previous network data. CUI function type that is called when the Nwk reset menu option is selected in the Example CUI menu.
| void tiopCUIReset | ( | const char | _input, |
| char * | _pLines[3], | ||
| CUI_cursorInfo_t * | _pCurInfo | ||
| ) |
Reset the OpenThread Instance without clearing out previous network data. CUI function type that is called when the reset menu option is selected in the Example CUI menu.