View previous topic :: View next topic |
Author |
Message |
Guille Guest
|
How can I implement this in CCS 4? |
Posted: Thu Sep 13, 2007 5:01 pm |
|
|
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
|
|
Posted: Thu Sep 13, 2007 10:06 pm |
|
|
Post the declarations for Device and Device2. |
|
|
Guest
|
|
Posted: Fri Sep 14, 2007 7:26 am |
|
|
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}
}; |
|
|
|
|
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
|