MDK-ARM Keil, MDK-ARM Datasheet - Page 97
![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: 97 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
Next, expand the case 5 switch statement of the smtp_cbfunc() function, to
handle multiple data packets. Add another switch statement as shown in the code
below. The local buffer MYBUF(pvar)-->id counts how many data packets have
been sent, and MYBUF(pvar)-->id controls the flow of the code through the new
switch statement. The smtp_cbfunc returns the number of bytes that have been
written to the output buffer. Recurring calls to the smtp_cbfunc() function can be
enforced by setting the most significant bit of the return value to high.
U16 smtp_cbfunc (U8 code, U8 *buf, U16 buflen, U32 *pvar)
rep:
}
Therefore, to send an email with a large amount of data we add a new switch
statement with cases. The first case sends the initial packet of data and sets the
repeat flag, the second case sends the bulk of the data and sets the repeat flag.
The final case sends the final packet of data and does not set the repeat flag.
Exercise: Dynamic SMTP
This exercise demonstrates how to construct a long email message containing
dynamic data.
U32 len = 0;
switch (code)
…
case 5:
}
return ((U16) len);
switch (MYBUF(pvar)->id)
}
case 0:
case 1:
case 2:
len = str_copy (buf, "First Packet of Data\n");
MYBUF (pvar)->id = 1;
MYBUF (pvar)->idx = 1;
goto rep;
len = str_copy (buf,"Bulk of the data\n");
if (++MYBUF(pvar)->idx > 5)
}
/* Request a repeated call, bit 15 is a repeat flag. */
len |= 0x8000;
break;
/* Last one, add a footer text to this email. */
len = str_copy (buf,"Last Packet of data.\n");
break;
MYBUF(pvar)->id = 2;
{
{
{
{
97
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: