Reply by Nitin Madhukar Yewale September 14, 20022002-09-14
Hi,
I am using 56F827 for my project. I am using SDK for firmware
development.

My doubts
1. Communication
I am transferring data between two units which contains the
above processor using SCI. I want to know the difference between the
following parameters which we will have to specify to set the data
format.
SCI_DATAFORMAT_RAW /SCI_DATAFORMAT_EIGHTBITCHARS.
I want to transfer a structure to the other side. How should I
use read and write function call effectively? Because read command will
wait till it receives the total number of bytes. For e.g.

Structure Example:
Typedef struct x
{
int l;
unsinged char h;
}

Typedef struct s
{
struct x jk;
int basic;
}
My code to write above data
ioctl( SciFD, SCI_DATAFORMAT_RAW, NULL );
struct s fg;
write (SciFD, &fg, sizeof (struct s) * 2);
To read :
read (SciFD, &fg, sizeof (struct s));

2. Switch statement:
One thing I have observed that nested switch statement [2 level]
is not working though the variable shows exact values. Anybody has faced
any such problem ever before? Thanks and Regards,
Nitin Yewale,
Wipro Technologies, Plot No 2, MIDC,
Pune Infotech Park, Hinjewadi,
Pune - 411 027 India.
Ph. 91-20-2933700 Extn :2074
Email :
URL : http://www.wipro.com


**************************Disclaimer********************************************\
******

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged'
and 'confidential' and intended for use only by the individual or entity to
which it is
addressed. You are notified that any use, copying or dissemination of the
information
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

********************************************************************************\
********