/*********************************************************************************** * @fn halLcdWriteLines * * @brief Write lines on display * * @param char *pLine1 - pointer to text buffer for line 1 * char *pLine2 - pointer to text buffer for line 2 * char *pLine3 - pointer to text buffer for line 3 * * @return none */ void halLcdWriteLines(const char *pLine1, const char *pLine2, const char *pLine3) { if (pLine1) halLcdWriteLine(1, pLine1); if (pLine2) halLcdWriteLine(2, pLine2); if (pLine3) halLcdWriteLine(3, pLine3); }
/*********************************************************************************** * @fn appSelectChannel * * @brief Select channel * * @param none * * @return uint8 - Channel chosen */ uint8 appSelectChannel(void) { halLcdWriteLine(HAL_LCD_LINE_1, "Channel: "); return utilMenuSelect(&channelMenu); }
/*********************************************************************************** * @fn appUpdateDisplay * * @brief Update display with status information. * * @param none * * @global nErrors * * @return none */ static void appUpdateDisplay(void) { char buf[17]; sprintf(buf,"Err: %2d/%2d", nTxErr,nRxErr); halLcdWriteLine(HAL_LCD_LINE_3, buf); }
/*********************************************************************************** * @fn appSelectGain * * @brief Select gain for CC2590/91 * * @param none * * @return uint8 - selected gain */ uint8 appSelectGain(void) { halLcdWriteLine(HAL_LCD_LINE_1, "Gain: "); return utilMenuSelect(&gainMenu); }
/*********************************************************************************** * @fn appSelectOutputPower * * @brief Select output power * * @param none * * @return uint8 - Output power alternative */ uint8 appSelectOutputPower(void) { halLcdWriteLine(HAL_LCD_LINE_1, "TX Output Power: "); return utilMenuSelect(&powerMenu); }
/*********************************************************************************** * @fn appSelectRate * * @brief Select transmit rate * * @param none * * @return uint8 - Rat chosen */ uint8 appSelectRate(void) { halLcdWriteLine(HAL_LCD_LINE_1, "Packet rate: "); return utilMenuSelect(&rateMenu); }
/*********************************************************************************** * @fn appSelectMode * * @brief Select application mode * * @param none * * @return uint8 - Application mode chosen */ uint8 appSelectMode(void) { halLcdWriteLine(HAL_LCD_LINE_1, "Operating Mode: "); return utilMenuSelect(&modeMenu); }