TI-OpenThread  1.08.06.06
Functions | Variables
LP_CC2652PSIP/thread/shade/tiop_ui.c File Reference
#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"
+ Include dependency graph for LP_CC2652PSIP/thread/shade/tiop_ui.c:

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
 

Function Documentation

§ tiopCUIInit()

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 
)

§ tiopCUIUpdateDeviceInfo()

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().

§ tiopCUIUpdateNwkName()

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().

§ tiopCUIUpdateExtPANID()

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.

§ tiopCUIUpdateMasterkey()

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().

§ tiopCUIUpdatePANID()

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().

§ tiopCUIUpdateChannel()

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().

§ tiopCUIUpdateShortAddr()

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.

§ tiopCUIUpdateRole()

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().

§ tiopCUIUpdateConnStatus()

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().

§ tiopCUIUpdateApp()

void tiopCUIUpdateApp ( char *  appInfo)

Update Application specific CUI output line.

documented in tiop_ui.h

References appInfoLine, clientHandle, and CUI_statusLinePrintf().

Referenced by tiopCUIInit().

§ uiActionProcessConfigurePanId()

void uiActionProcessConfigurePanId ( const char  _input,
char *  _pLines[3],
CUI_cursorInfo_t _pCurInfo 
)

§ uiActionProcessConfigureChannel()

void uiActionProcessConfigureChannel ( const char  _input,
char *  _pLines[3],
CUI_cursorInfo_t _pCurInfo 
)

Variable Documentation

§ redLedHandle

LED_Handle redLedHandle
static

Referenced by tiopCUIInit(), and tiopCUIUpdateRole().

§ greenLedHandle

LED_Handle greenLedHandle
static

Referenced by tiopCUIInit(), and tiopCUIUpdateRole().

§ clientHandle

CUI_clientHandle_t clientHandle
static

§ deviceInfoLine

uint32_t deviceInfoLine
static

§ nwkInfoLine1

uint32_t nwkInfoLine1
static

§ nwkInfoLine2

uint32_t nwkInfoLine2
static

§ nwkInfoLine3

uint32_t nwkInfoLine3
static

§ deviceRoleLine

uint32_t deviceRoleLine
static

Referenced by tiopCUIInit(), and tiopCUIUpdateRole().

§ connStatusLine

uint32_t connStatusLine
static

§ appInfoLine

uint32_t appInfoLine
static

Referenced by tiopCUIInit(), and tiopCUIUpdateApp().

§ panid

otPanId panid
static

§ display_channel

uint8_t display_channel
static

§ shortAddr

otShortAddress shortAddr
static

§ extAddress

otExtAddress extAddress
static

§ extPanId

otExtendedPanId extPanId
static

§ masterkey

otMasterKey masterkey
static

§ nwkName

const char* nwkName
static
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale