MDK-ARM Keil, MDK-ARM Datasheet - Page 99
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 99 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
The second function is telnet_process_cmd(). This command line parser is used
to read the input from the Telnet client and then calls the required C application
functions. When a client connects to the Telnet server and enters a command
string, the telnet_process_cmd() function is triggered. The cmd pointer can
access the command string entered by the client.
Any reply by the Telnet server must be entered into the buffer buf. The size of
this buffer depends on the network maximum segment size. The third parameter,
buflen, contains the current maximum size for the buffer buf. Within this
function, we must make a command line parser. This will be used to inter-
operate the Telnet client commands and call the C application functions.
if (tnet_ccmp (cmd, "ADIN") == __TRUE)
}
When the telnet_process_cmd() function is triggered, we can use the helper
function tnet_ccmp() to examine the contents of the command buffer cmd. In the
above example, the client command ADIN requests the current conversion value
for a selected ADC channel. It is important to note that the helper function
tnet_ccmp() converts the command string characters to uppercase. This means,
that all your menu options must be defined as uppercase strings. The example
parses the string to determine which channel is required. Then it calls the user
ADC() conversion function. Next, it places the results in the reply buffer, which
is then sent back to the Telnet client. Finally, the number of bytes written into
the reply buffer must be returned to the RL-TCPnet library.
if (tnet_ccmp (cmd, "BYE") == __TRUE)
}
As well as returning the number of bytes in the reply buffer, the most significant
bit of the return value acts as a disconnect flag. Setting this bit terminates a
Telnet session.
Exercise: Telnet Server
This exercise demonstrates a Telnet server with a simple command line parser.
if (len >= 6)
}
len = str_copy (buf, "\r\nDisconnect...\r\n");
return (len | 0x8000);
sscanf ((const S8 *)(cmd+5), "%d",&ch);
val = AD_in (ch);
len = sprintf ((S8 *) buf, "\r\n ADIN %d = %d", ch, val);
return (len);
{
{
{
99
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: