CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How can I implement this in CCS 4?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guille
Guest







How can I implement this in CCS 4?
PostPosted: Thu Sep 13, 2007 5:01 pm     Reply with quote

typedef struct CO_object {
unsigned int ind;
unsigned char sub;
unsigned char attr;
unsigned char length;
ROM void* pData;
};

struct CO_object const CO_OD[] = {
{0x1000, 0x00, 0x08, sizeof(Device), (ROM void*) &Device},
{0x1001, 0x00, 0x08, sizeof(Device2), (ROM void*) &Device2},
};

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 13, 2007 10:06 pm     Reply with quote

Post the declarations for Device and Device2.
Guest








PostPosted: Fri Sep 14, 2007 7:26 am     Reply with quote

struct CO_device{
UNSIGNED32 C_to_S;
UNSIGNED32 S_to_C;
UNSIGNED8 SDO;
};
/*ROM*/ struct CO_device const Device[1] = {
{0x1001, 0x0201, 0}
};
/*RAM*/ struct CO_device Device1[1] = {
{0x80000000L, 0x80000000L, 0}
};
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group