TI-OpenThread  1.08.06.06
Macros | Enumerations | Functions | Variables
LP_CC1352P7_4/thread/empty_ftd/cui.c File Reference
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <ti/sysbios/BIOS.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/dpl/SemaphoreP.h>
#include <ti/drivers/dpl/SystemP.h>
#include <ti/drivers/UART2.h>
#include <ti/drivers/utils/Random.h>
#include <ti/drivers/apps/LED.h>
#include <DeviceFamily_constructPath(driverlib/cpu.h)>
#include "ti_drivers_config.h"
#include "cui.h"
+ Include dependency graph for LP_CC1352P7_4/thread/empty_ftd/cui.c:

Macros

#define CUI_END_CHAR   0x03
 
#define CUI_ESC_CLR   "\033[2J"
 
#define CUI_ESC_CLR_STAT_LINE_VAL   "\033[2K"
 
#define CUI_ESC_CLR_UP   "\033[1J"
 
#define CUI_ESC_CUR_HIDE   "\033[?25l"
 
#define CUI_ESC_CUR_HOME   "\033[H"
 
#define CUI_ESC_CUR_LINE   "\033[%d;0H"
 
#define CUI_ESC_CUR_MENU_BTM   "\033[3;%dH"
 
#define CUI_ESC_CUR_ROW_COL   "\033[%d;%dH"
 
#define CUI_ESC_CUR_SHOW   "\033[?25h"
 
#define CUI_ESC_DOWN   "\033[B"
 
#define CUI_ESC_ESC   "\033\0\0\0\0"
 
#define CUI_ESC_LEFT   "\033[D"
 
#define CUI_ESC_RIGHT   "\033[C"
 
#define CUI_ESC_TRM_MODE   "\033[20"
 
#define CUI_ESC_UP   "\033[A"
 
#define CUI_ETX_LEN   1
 
#define CUI_INITIAL_STATUS_OFFSET   5
 
#define CUI_LABEL_VAL_SEP   ": "
 
#define CUI_MAX_LABEL_AND_SEP_LEN   (MAX_STATUS_LINE_LABEL_LEN + (sizeof(CUI_LABEL_VAL_SEP)))
 
#define CUI_MENU_START_CHAR   0x01
 
#define CUI_MENU_START_ESCAPE_LEN   32
 
#define CUI_NL_CR   "\n\r"
 
#define CUI_NL_CR_LEN   2
 
#define CUI_NUM_UART_CHARS   5
 
#define CUI_STATUS_LINE_START_CHAR   0x02
 

Enumerations

enum  CUI_rscStatus_t {
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF,
  CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF, CUI_RELEASED = 0, CUI_ACQUIRED = 0xDEADBEEF
}
 

Functions

static CUI_retVal_t CUI_acquireStatusLine (const CUI_clientHandle_t _clientHandle, const char *_pLabel, const bool _refreshInd, uint32_t *_pLineId)
 
static CUI_retVal_t CUI_acquireStatusLine (const CUI_clientHandle_t _clientHandle, const char _pLabel[MAX_STATUS_LINE_LABEL_LEN], const bool _refreshInd, uint32_t *_pLineId)
 
void CUI_assert (const char *_assertMsg, const bool _spinLock)
 
static void CUI_callMenuUartUpdateFn ()
 
CUI_clientHandle_t CUI_clientOpen (CUI_clientParams_t *_pParams)
 
void CUI_clientParamsInit (CUI_clientParams_t *_pClientParams)
 
CUI_retVal_t CUI_close ()
 
CUI_retVal_t CUI_deRegisterMenu (const CUI_clientHandle_t _clientHandle, CUI_menu_t *_pMenu)
 
static void CUI_dispMenu (bool _menuPopulated)
 
static CUI_retVal_t CUI_findMenu (CUI_menu_t *_pMenu, CUI_menu_t *_pDesiredMenu, uint32_t *_pPrevItemIndex)
 
static int CUI_getClientIndex (const CUI_clientHandle_t _clientHandle)
 
static bool CUI_handleMenuIntercept (CUI_menuItem_t *_pItemEntry, uint8_t _input)
 
static bool CUI_handleMenuList (CUI_menuItem_t *_pItemEntry, uint8_t _input)
 
CUI_retVal_t CUI_init (CUI_params_t *_pParams)
 
void CUI_menuActionBack (const int32_t _itemEntry)
 
static void CUI_menuActionExecute (void)
 
void CUI_menuActionHelp (char _input, char *_lines[3], CUI_cursorInfo_t *_curInfo)
 
static void CUI_menuActionNavigate (uint8_t _navDir)
 
CUI_retVal_t CUI_menuNav (const CUI_clientHandle_t _clientHandle, CUI_menu_t *_pMenu, const uint32_t _itemIndex)
 
void CUI_paramsInit (CUI_params_t *_pParams)
 
CUI_retVal_t CUI_processMenuUpdate (void)
 
static CUI_retVal_t CUI_publicAPIChecks (const CUI_clientHandle_t _clientHandle)
 
CUI_retVal_t CUI_registerMenu (const CUI_clientHandle_t _clientHandle, CUI_menu_t *_pMenu)
 
CUI_retVal_t CUI_statusLinePrintf (const CUI_clientHandle_t _clientHandle, const uint32_t _lineId, const char *_format,...)
 
CUI_retVal_t CUI_statusLineResourceRequest (const CUI_clientHandle_t _clientHandle, const char _pLabel[MAX_STATUS_LINE_LABEL_LEN], const bool _refreshInd, uint32_t *_pLineId)
 
static void CUI_updateCursor (void)
 
CUI_retVal_t CUI_updateMultiMenuTitle (const char *_pTitle)
 
static CUI_retVal_t CUI_updateRemLen (size_t *_currRemLen, char *_buff, size_t _buffSize)
 
static CUI_retVal_t CUI_validateHandle (const CUI_clientHandle_t _clientHandle)
 
static CUI_retVal_t CUI_writeString (void *_buffer, size_t _size)
 
static void UartReadCallback (UART2_Handle _handle, void *_buf, size_t _size, void *_userArg, int_fast16_t _status)
 
static void UartWriteCallback (UART2_Handle _handle, void *_buf, size_t _size, void *_userArg, int_fast16_t _status)
 

Variables

CUI_menu_tcuiMultiMenu = (CUI_menu_t *)&cuiMultiMenuData
 
uint8_t cuiMultiMenuData [sizeof(CUI_menu_t)+((MAX_REGISTERED_MENUS+1) *sizeof(CUI_menuItem_t))]
 
static CUI_clientHandle_t gClientHandles [MAX_CLIENTS]
 
static SemaphoreP_Handle gClientsSem
 
static SemaphoreP_Struct gClientsSemStruct
 
static size_t gCurrMenuItemEntry = 0
 
static bool gCursorActive
 
static CUI_cursorInfo_t gCursorInfo
 
static uint32_t gMaxStatusLines [MAX_CLIENTS]
 
static CUI_menuResource_t gMenuResources [MAX_REGISTERED_MENUS]
 
static SemaphoreP_Handle gMenuSem
 
static SemaphoreP_Struct gMenuSemStruct
 
static bool gModuleInitialized = false
 
static CUI_menu_tgpCurrMenu
 
static CUI_menu_tgpMainMenu
 
static char gpMultiMenuTitle [] = " TI DMM Application "
 
static size_t gPrevMenuItemEntry = 0
 
static SemaphoreP_Params gSemParams
 
static CUI_statusLineResource_t * gStatusLineResources [MAX_CLIENTS]
 
static SemaphoreP_Handle gStatusSem
 
static SemaphoreP_Struct gStatusSemStruct
 
static uint8_t gTxBuff [512]
 
static size_t gTxLen = 0
 
static size_t gTxSent = 0
 
static UART2_Handle gUartHandle = NULL
 
static uint8_t gUartRxBuffer [CUI_NUM_UART_CHARS]
 
static SemaphoreP_Handle gUartSem
 
static SemaphoreP_Struct gUartSemStruct
 
char menuBuff [CUI_MENU_START_ESCAPE_LEN+MAX_MENU_LINE_LEN+CUI_NL_CR_LEN+MAX_MENU_LINE_LEN+CUI_NL_CR_LEN+MAX_MENU_LINE_LEN+CUI_ETX_LEN]
 

Macro Definition Documentation

§ CUI_INITIAL_STATUS_OFFSET

#define CUI_INITIAL_STATUS_OFFSET   5

Referenced by CUI_assert(), and CUI_statusLinePrintf().

§ CUI_LABEL_VAL_SEP

#define CUI_LABEL_VAL_SEP   ": "

Referenced by CUI_acquireStatusLine().

§ CUI_MAX_LABEL_AND_SEP_LEN

#define CUI_MAX_LABEL_AND_SEP_LEN   (MAX_STATUS_LINE_LABEL_LEN + (sizeof(CUI_LABEL_VAL_SEP)))

Referenced by CUI_statusLinePrintf().

§ CUI_MENU_START_CHAR

#define CUI_MENU_START_CHAR   0x01

Referenced by CUI_dispMenu().

§ CUI_STATUS_LINE_START_CHAR

#define CUI_STATUS_LINE_START_CHAR   0x02

Referenced by CUI_assert(), and CUI_statusLinePrintf().

§ CUI_END_CHAR

#define CUI_END_CHAR   0x03

§ CUI_NL_CR

#define CUI_NL_CR   "\n\r"

§ CUI_ESC_UP

#define CUI_ESC_UP   "\033[A"

Referenced by CUI_processMenuUpdate().

§ CUI_ESC_DOWN

#define CUI_ESC_DOWN   "\033[B"

Referenced by CUI_processMenuUpdate().

§ CUI_ESC_RIGHT

#define CUI_ESC_RIGHT   "\033[C"

Referenced by CUI_processMenuUpdate().

§ CUI_ESC_LEFT

#define CUI_ESC_LEFT   "\033[D"

Referenced by CUI_processMenuUpdate().

§ CUI_ESC_ESC

#define CUI_ESC_ESC   "\033\0\0\0\0"

Referenced by CUI_processMenuUpdate().

§ CUI_ESC_TRM_MODE

#define CUI_ESC_TRM_MODE   "\033[20"

Referenced by CUI_close(), and CUI_init().

§ CUI_ESC_CLR

#define CUI_ESC_CLR   "\033[2J"

Referenced by CUI_close(), and CUI_init().

§ CUI_ESC_CLR_UP

#define CUI_ESC_CLR_UP   "\033[1J"

Referenced by CUI_deRegisterMenu(), and CUI_dispMenu().

§ CUI_ESC_CLR_STAT_LINE_VAL

#define CUI_ESC_CLR_STAT_LINE_VAL   "\033[2K"

Referenced by CUI_assert(), and CUI_statusLinePrintf().

§ CUI_ESC_CUR_HIDE

#define CUI_ESC_CUR_HIDE   "\033[?25l"

§ CUI_ESC_CUR_SHOW

#define CUI_ESC_CUR_SHOW   "\033[?25h"

Referenced by CUI_updateCursor().

§ CUI_ESC_CUR_HOME

#define CUI_ESC_CUR_HOME   "\033[H"

§ CUI_ESC_CUR_MENU_BTM

#define CUI_ESC_CUR_MENU_BTM   "\033[3;%dH"

Referenced by CUI_deRegisterMenu(), and CUI_dispMenu().

§ CUI_ESC_CUR_LINE

#define CUI_ESC_CUR_LINE   "\033[%d;0H"

Referenced by CUI_assert(), and CUI_statusLinePrintf().

§ CUI_ESC_CUR_ROW_COL

#define CUI_ESC_CUR_ROW_COL   "\033[%d;%dH"

Referenced by CUI_updateCursor().

§ CUI_NUM_UART_CHARS

#define CUI_NUM_UART_CHARS   5

§ CUI_MENU_START_ESCAPE_LEN

#define CUI_MENU_START_ESCAPE_LEN   32

§ CUI_NL_CR_LEN

#define CUI_NL_CR_LEN   2

§ CUI_ETX_LEN

#define CUI_ETX_LEN   1

Enumeration Type Documentation

§ CUI_rscStatus_t

Enumerator
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 
CUI_RELEASED 
CUI_ACQUIRED 

Function Documentation

§ CUI_publicAPIChecks()

static CUI_retVal_t CUI_publicAPIChecks ( const CUI_clientHandle_t  _clientHandle)
static

§ CUI_acquireStatusLine() [1/2]

static CUI_retVal_t CUI_acquireStatusLine ( const CUI_clientHandle_t  _clientHandle,
const char *  _pLabel,
const bool  _refreshInd,
uint32_t *  _pLineId 
)
static

§ CUI_validateHandle()

static CUI_retVal_t CUI_validateHandle ( const CUI_clientHandle_t  _clientHandle)
static

§ CUI_getClientIndex()

static int CUI_getClientIndex ( const CUI_clientHandle_t  _clientHandle)
static

§ UartWriteCallback()

static void UartWriteCallback ( UART2_Handle  _handle,
void *  _buf,
size_t  _size,
void *  _userArg,
int_fast16_t  _status 
)
static

References gTxBuff, gTxLen, gTxSent, gUartHandle, and gUartSem.

Referenced by CUI_init().

§ UartReadCallback()

static void UartReadCallback ( UART2_Handle  _handle,
void *  _buf,
size_t  _size,
void *  _userArg,
int_fast16_t  _status 
)
static

References CUI_callMenuUartUpdateFn().

Referenced by CUI_init().

§ CUI_updateRemLen()

static CUI_retVal_t CUI_updateRemLen ( size_t *  _currRemLen,
char *  _buff,
size_t  _buffSize 
)
static

References CUI_FAILURE, and CUI_SUCCESS.

Referenced by CUI_statusLinePrintf().

§ CUI_writeString()

static CUI_retVal_t CUI_writeString ( void *  _buffer,
size_t  _size 
)
static

§ CUI_menuActionNavigate()

static void CUI_menuActionNavigate ( uint8_t  _navDir)
static

§ CUI_menuActionExecute()

static void CUI_menuActionExecute ( void  )
static

§ CUI_dispMenu()

static void CUI_dispMenu ( bool  _menuPopulated)
static

§ CUI_callMenuUartUpdateFn()

static void CUI_callMenuUartUpdateFn ( )
static

§ CUI_updateCursor()

static void CUI_updateCursor ( void  )
static

§ CUI_handleMenuIntercept()

static bool CUI_handleMenuIntercept ( CUI_menuItem_t _pItemEntry,
uint8_t  _input 
)
static

§ CUI_handleMenuList()

static bool CUI_handleMenuList ( CUI_menuItem_t _pItemEntry,
uint8_t  _input 
)
static

§ CUI_findMenu()

static CUI_retVal_t CUI_findMenu ( CUI_menu_t _pMenu,
CUI_menu_t _pDesiredMenu,
uint32_t *  _pPrevItemIndex 
)
static

§ CUI_init()

CUI_retVal_t CUI_init ( CUI_params_t _pParams)

§ CUI_paramsInit()

void CUI_paramsInit ( CUI_params_t _pParams)

References CUI_params_t::manageUart.

Referenced by CUI_assert().

§ CUI_clientOpen()

CUI_clientHandle_t CUI_clientOpen ( CUI_clientParams_t _pParams)

§ CUI_clientParamsInit()

void CUI_clientParamsInit ( CUI_clientParams_t _pClientParams)

§ CUI_close()

CUI_retVal_t CUI_close ( )

§ CUI_registerMenu()

CUI_retVal_t CUI_registerMenu ( const CUI_clientHandle_t  _clientHandle,
CUI_menu_t _pMenu 
)

§ CUI_deRegisterMenu()

CUI_retVal_t CUI_deRegisterMenu ( const CUI_clientHandle_t  _clientHandle,
CUI_menu_t _pMenu 
)

§ CUI_updateMultiMenuTitle()

CUI_retVal_t CUI_updateMultiMenuTitle ( const char *  _pTitle)

§ CUI_menuNav()

CUI_retVal_t CUI_menuNav ( const CUI_clientHandle_t  _clientHandle,
CUI_menu_t _pMenu,
const uint32_t  _itemIndex 
)

§ CUI_processMenuUpdate()

CUI_retVal_t CUI_processMenuUpdate ( void  )

§ CUI_statusLineResourceRequest()

CUI_retVal_t CUI_statusLineResourceRequest ( const CUI_clientHandle_t  _clientHandle,
const char  _pLabel[MAX_STATUS_LINE_LABEL_LEN],
const bool  _refreshInd,
uint32_t *  _pLineId 
)

§ CUI_statusLinePrintf()

CUI_retVal_t CUI_statusLinePrintf ( const CUI_clientHandle_t  _clientHandle,
const uint32_t  _lineId,
const char *  _format,
  ... 
)

§ CUI_assert()

void CUI_assert ( const char *  _assertMsg,
const bool  _spinLock 
)

§ CUI_menuActionBack()

void CUI_menuActionBack ( const int32_t  _itemEntry)

§ CUI_menuActionHelp()

void CUI_menuActionHelp ( char  _input,
char *  _lines[3],
CUI_cursorInfo_t _curInfo 
)

§ CUI_acquireStatusLine() [2/2]

static CUI_retVal_t CUI_acquireStatusLine ( const CUI_clientHandle_t  _clientHandle,
const char  _pLabel[MAX_STATUS_LINE_LABEL_LEN],
const bool  _refreshInd,
uint32_t *  _pLineId 
)
static

Variable Documentation

§ gModuleInitialized

bool gModuleInitialized = false
static

§ gClientHandles

CUI_clientHandle_t gClientHandles[MAX_CLIENTS]
static

§ gMaxStatusLines

uint32_t gMaxStatusLines[MAX_CLIENTS]
static

§ gSemParams

SemaphoreP_Params gSemParams
static

Referenced by CUI_init().

§ gClientsSem

SemaphoreP_Handle gClientsSem
static

Referenced by CUI_clientOpen(), and CUI_init().

§ gClientsSemStruct

SemaphoreP_Struct gClientsSemStruct
static

Referenced by CUI_init().

§ gUartHandle

UART2_Handle gUartHandle = NULL
static

§ gUartRxBuffer

uint8_t gUartRxBuffer[CUI_NUM_UART_CHARS]
static

Referenced by CUI_init(), and CUI_processMenuUpdate().

§ gUartSem

SemaphoreP_Handle gUartSem
static

§ gUartSemStruct

SemaphoreP_Struct gUartSemStruct
static

Referenced by CUI_init().

§ gTxBuff

uint8_t gTxBuff[512]
static

§ gTxLen

size_t gTxLen = 0
static

§ gTxSent

size_t gTxSent = 0
static

§ gpCurrMenu

CUI_menu_t* gpCurrMenu
static

§ gpMainMenu

CUI_menu_t* gpMainMenu
static

§ gCurrMenuItemEntry

size_t gCurrMenuItemEntry = 0
static

§ gPrevMenuItemEntry

size_t gPrevMenuItemEntry = 0
static

§ gCursorActive

bool gCursorActive
static

§ gCursorInfo

CUI_cursorInfo_t gCursorInfo
static

§ gMenuResources

CUI_menuResource_t gMenuResources[MAX_REGISTERED_MENUS]
static

§ gMenuSem

SemaphoreP_Handle gMenuSem
static

§ gMenuSemStruct

SemaphoreP_Struct gMenuSemStruct
static

Referenced by CUI_init().

§ menuBuff

§ gpMultiMenuTitle

char gpMultiMenuTitle[] = " TI DMM Application "
static

Referenced by CUI_init().

§ cuiMultiMenuData

uint8_t cuiMultiMenuData[sizeof(CUI_menu_t)+((MAX_REGISTERED_MENUS+1) *sizeof(CUI_menuItem_t))]

§ cuiMultiMenu

CUI_menu_t* cuiMultiMenu = (CUI_menu_t *)&cuiMultiMenuData

§ gStatusLineResources

CUI_statusLineResource_t* gStatusLineResources[MAX_CLIENTS]
static

§ gStatusSem

SemaphoreP_Handle gStatusSem
static

§ gStatusSemStruct

SemaphoreP_Struct gStatusSemStruct
static

Referenced by CUI_init().

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