Motorola MC68328 Información técnica Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 44
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
3-26 FLEX Alphanumeric Chip MC68175 Interface
Software Development
Porting FLEX One-Way Stack to the MC68328 MPU
/* Read the first message specified in the table */
handle = (UVAR8*) FStkOpen(msgid, (UVAR8)FILTERED);
/* Get the message attributes, including message length */
header = (HEADER *) FStkGetAttrib(msgid,(UVAR8)(sizeof(HEADER)),
ATTRIB_BUF);
/*
* In the case that we cannot open the message, return
to the caller
*/
if (!header) {
(void)FStkClose(handle);
return;
}
if (BTST(header->e.msg_attrib, HDR_TONE_ONLY)) {
pageData[i] = '\0';
}
else {
/* Retrieve message and store it in pageData variable */
for (i = 0; i < header->e.msg_char_size; i++) {
(void)FStkRead(handle, (UVAR8*) &filterData);
if ((filterData.data >= 0x20) && (filterData.data
< 0x7F))
pageData[i] = (UVAR8) filterData.data;
else
pageData[i] = 0x2E;
}
pageData[i] = '\0';
}
(void)FStkClose(handle);
/* Display the paging message on LCD */
displayMessage(pageData);
}
Example 3-12 Function GetPage (Continued)
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Vista de pagina 43
1 2 ... 39 40 41 42 43 44

Comentarios a estos manuales

Sin comentarios