![]() |
![]() |
TI-OpenThread
1.08.06.06
|
#include "tiop_ui.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "tiop_config.h"
#include "otsupport/otinstance.h"
#include "otsupport/otrtosapi.h"
#include <openthread/thread.h>
#include "ti_drivers_config.h"
#include "tiop_app_defs.h"
Functions | |
CUI_SUB_MENU_END CUI_SUB_MENU_END CUI_APP_MENU CUI_SUB_MENU_END CUI_MAIN_MENU_END void | tiopCUIInit (char *appString, Button_Handle *rightButtonHandle) |
Initialize example CUI functionality. 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 | 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... | |
Variables | |
static uint32_t | appInfoLine |
static CUI_clientHandle_t | clientHandle |
static uint32_t | connStatusLine |
static uint32_t | deviceInfoLine |
static uint32_t | deviceRoleLine |
static uint8_t | display_channel |
static otExtAddress | extAddress |
static otExtendedPanId | extPanId |
static LED_Handle | greenLedHandle |
static otMasterKey | masterkey |
static uint32_t | nwkInfoLine1 |
static uint32_t | nwkInfoLine2 |
static uint32_t | nwkInfoLine3 |
static const char * | nwkName |
static otPanId | panid |
static LED_Handle | redLedHandle |
static otShortAddress | shortAddr |
CUI_SUB_MENU_END CUI_SUB_MENU_END CUI_APP_MENU CUI_SUB_MENU_END CUI_MAIN_MENU_END void tiopCUIInit | ( | char * | appString, |
Button_Handle * | rightButtonHandle | ||
) |
Initialize example CUI functionality.
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().
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 tiopCUIUpdateNwkName | ( | const char * | name | ) |
Update network name CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), extPanId, nwkInfoLine1, and nwkName.
Referenced by tiopCUIInit().
void tiopCUIUpdateExtPANID | ( | otExtendedPanId | extPan | ) |
Update Extended panid CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), extPanId, nwkInfoLine1, and nwkName.
void tiopCUIUpdateMasterkey | ( | otMasterKey | key | ) |
Update masterkey CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_MAGENTA, CUI_COLOR_RESET, CUI_statusLinePrintf(), masterkey, and nwkInfoLine2.
Referenced by tiopCUIInit().
void tiopCUIUpdatePANID | ( | otPanId | pan | ) |
Update panid CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
Referenced by tiopCUIInit(), and uiActionProcessConfigurePanId().
void tiopCUIUpdateChannel | ( | uint8_t | ch | ) |
Update channel CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
Referenced by uiActionProcessConfigureChannel().
void tiopCUIUpdateShortAddr | ( | otShortAddress | s | ) |
Update short address CUI output.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RESET, CUI_COLOR_YELLOW, CUI_statusLinePrintf(), display_channel, nwkInfoLine3, panid, and shortAddr.
void tiopCUIUpdateRole | ( | otDeviceRole | role | ) |
Update device role CUI output line.
documented in tiop_ui.h
References clientHandle, CUI_COLOR_RED, CUI_COLOR_RESET, CUI_statusLinePrintf(), deviceRoleLine, greenLedHandle, and redLedHandle.
Referenced by tiopCUIInit().
void tiopCUIUpdateConnStatus | ( | cuiConn | status | ) |
Update connection status CUI output line.
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 tiopCUIInit().
void tiopCUIUpdateApp | ( | char * | appInfo | ) |
Update Application specific CUI output line.
documented in tiop_ui.h
References appInfoLine, clientHandle, and CUI_statusLinePrintf().
Referenced by 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().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateRole().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateRole().
|
static |
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateDeviceInfo().
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateExtPANID(), and tiopCUIUpdateNwkName().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateMasterkey().
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateChannel(), tiopCUIUpdatePANID(), and tiopCUIUpdateShortAddr().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateRole().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateConnStatus().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateApp().
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateChannel(), tiopCUIUpdatePANID(), and tiopCUIUpdateShortAddr().
|
static |
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateChannel(), tiopCUIUpdatePANID(), and tiopCUIUpdateShortAddr().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateDeviceInfo().
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateExtPANID(), and tiopCUIUpdateNwkName().
|
static |
Referenced by tiopCUIInit(), and tiopCUIUpdateMasterkey().
|
static |
Referenced by tiopCUIInit(), tiopCUIUpdateExtPANID(), and tiopCUIUpdateNwkName().