TI-OpenThread  1.08.06.06
LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file tiop_ui.h
4 
5  @brief TI-OpenThread CUI Functions
6 
7  Group: CMCU, LPC
8  Target Device: cc13xx_cc26xx
9 
10  ******************************************************************************
11 
12  Copyright (c) 2017-2022, Texas Instruments Incorporated
13  All rights reserved.
14 
15  Redistribution and use in source and binary forms, with or without
16  modification, are permitted provided that the following conditions
17  are met:
18 
19  * Redistributions of source code must retain the above copyright
20  notice, this list of conditions and the following disclaimer.
21 
22  * Redistributions in binary form must reproduce the above copyright
23  notice, this list of conditions and the following disclaimer in the
24  documentation and/or other materials provided with the distribution.
25 
26  * Neither the name of Texas Instruments Incorporated nor the names of
27  its contributors may be used to endorse or promote products derived
28  from this software without specific prior written permission.
29 
30  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
32  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
33  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
34  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
36  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
37  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
39  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
40  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 
42  ******************************************************************************
43 
44 
45  *****************************************************************************/
46 
47 #ifndef TIOP_UI_H_
48 #define TIOP_UI_H_
49 
50 #include "cui.h"
51 #include <openthread/thread.h>
52 
56 typedef enum
57 {
62 } cuiConn;
63 
73 extern void tiopCUIInit(char* appString,
74  Button_Handle* rightButtonHandle);
75 
83 extern void tiopCUIUpdateRole(otDeviceRole role);
84 
90 extern void tiopCUIUpdateDeviceInfo(void);
91 
99 extern void tiopCUIUpdatePANID(otPanId pan);
100 
108 extern void tiopCUIUpdateChannel(uint8_t ch);
109 
117 extern void tiopCUIUpdateShortAddr(otShortAddress s);
118 
126 extern void tiopCUIUpdateMasterkey(otMasterKey key);
127 
135 extern void tiopCUIUpdateExtPANID(otExtendedPanId extPan);
136 
147 extern void tiopCUIUpdateNwkName(const char* name);
148 
156 extern void tiopCUIUpdateConnStatus(cuiConn status);
157 
165 extern void tiopCUIUpdateApp(char* appInfo);
166 
172 extern void uiActionProcessConfigurePanId(const char _input, char* _pLines[3],
173  CUI_cursorInfo_t* _pCurInfo);
174 
180 extern void uiActionProcessConfigureChannel(const char _input,
181  char* _pLines[3], CUI_cursorInfo_t* _pCurInfo);
182 
188 extern void uiActionAttach(const int32_t _itemEntry);
189 
195 extern void uiActionJoin(const int32_t _itemEntry);
196 
202 extern void processKeyChangeCB(Button_Handle _buttonHandle,
203  Button_EventMask _buttonEvents);
204 
210 extern void processMenuUpdateFn(void);
211 
219 extern void tiopCUINwkReset(const char _input, char* _pLines[3],
220  CUI_cursorInfo_t* _pCurInfo);
221 
229 extern void tiopCUIReset(const char _input, char* _pLines[3],
230  CUI_cursorInfo_t* _pCurInfo);
231 
232 
233 #endif /* TIOP_UI_H_ */
void processMenuUpdateFn(void)
Handles CUI Menu update events for examples.
Definition: LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h:60
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 ...
void uiActionJoin(const int32_t _itemEntry)
Handles join menu option event for examples.
cuiConn
Definition: LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h:56
void tiopCUIUpdateConnStatus(cuiConn status)
Update connection status CUI output line.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:409
Definition: LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h:58
void uiActionAttach(const int32_t _itemEntry)
Handles attach menu option event for examples.
void processKeyChangeCB(Button_Handle _buttonHandle, Button_EventMask _buttonEvents)
Handles the key pressed events for examples.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/doorlock.c:351
void tiopCUIUpdateChannel(uint8_t ch)
Update channel CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:302
void tiopCUIInit(char *appString, Button_Handle *rightButtonHandle)
Initialize example CUI functionality.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:106
void tiopCUIUpdateShortAddr(otShortAddress s)
Update short address CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:316
void tiopCUIUpdateExtPANID(otExtendedPanId extPan)
Update Extended panid CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:259
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/cui.h:748
void tiopCUIUpdateApp(char *appInfo)
Update Application specific CUI output line.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:447
Definition: LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h:61
void uiActionProcessConfigureChannel(const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo)
Handle reading user input into the channel configuration in CUI.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:584
void tiopCUIUpdateRole(otDeviceRole role)
Update device role CUI output line.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:328
cuiConn
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.h:56
void uiActionProcessConfigurePanId(const char _input, char *_pLines[3], CUI_cursorInfo_t *_pCurInfo)
Handle reading user input into the panid configuration in CUI.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:455
Definition: LP_CC2674R10_FPGA/thread/door_lock/tiop_ui.h:59
static Button_Handle rightButtonHandle
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/doorlock.c:184
void tiopCUIUpdateNwkName(const char *name)
Update network name CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:244
void tiopCUIUpdateMasterkey(otMasterKey key)
Update masterkey CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:274
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 c...
void tiopCUIUpdateDeviceInfo(void)
Update device info CUI output line.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:230
void tiopCUIUpdatePANID(otPanId pan)
Update panid CUI output.
Definition: CC1352P_2_LAUNCHXL/thread/door_lock/tiop_ui.c:290
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale