72 static word DeviceIdx = 0;
97 { 0x0253, TRUE, FALSE, TRUE , TRUE , FALSE, TRUE , TRUE , 0x0200, 0x02FF, 0xF000 },
98 { 0xF112, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xF000 },
99 { 0x1132, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
100 { 0xF123, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
101 { 0x1232, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
103 { 0xF149, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
105 { 0xF169, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
106 { 0xF16C, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x1100, 0x24FF, 0x8000 },
107 { 0xF201, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , TRUE , 0x0200, 0x027F, 0xF800 },
109 { 0xF213, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
111 { 0xF227, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , TRUE , 0x0200, 0x05FF, 0x8000 },
112 { 0xF237, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x0200, 0x09FF, 0x8000 },
116 { 0xF249, FALSE, FALSE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
118 { 0xF26F, FALSE, TRUE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x1100, 0x20FF, 0x2100 },
119 { 0xF413, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
120 { 0xF427, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
121 { 0xF429, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
122 { 0x427A, FALSE, FALSE, TRUE , TRUE , FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
123 { 0xF437, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x05FF, 0xA000 },
124 { 0xF439, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
126 { 0xF449, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
127 { 0xF46F, FALSE, TRUE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x1100, 0x20FF, 0x2100 },
128 { 0x2452, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , TRUE , 0x0200, 0x027F, 0xFC00 },
129 { 0x2553, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , TRUE , 0x0200, 0x02FF, 0xFC00 },
130 { 0x2955, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , TRUE , 0x0200, 0x09FF, 0x8000 },
131 { 0x255C, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , TRUE , 0x0200, 0x03FF, 0xC000 },
132 { 0x4020, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , TRUE , 0x0200, 0x05FF, 0xC000 },
133 { 0xFFFF, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 }
146 for(DeviceIdx = 0; DeviceIdx < (
sizeof(sDeviceFeatures)/
sizeof(*sDeviceFeatures)); DeviceIdx++)
148 if(sDeviceFeatures[DeviceIdx].Id == wDeviceId)
159 return (sDeviceFeatures[DeviceIdx].TestPin);
166 return (sDeviceFeatures[DeviceIdx].CpuX);
173 return (sDeviceFeatures[DeviceIdx].DataQuick);
180 return (sDeviceFeatures[DeviceIdx].FastFlash);
187 return (sDeviceFeatures[DeviceIdx].EnhVerify);
194 return (sDeviceFeatures[DeviceIdx].JTAG);
201 return (sDeviceFeatures[DeviceIdx].SpyBiWire);
208 return (sDeviceFeatures[DeviceIdx].RamStart);
215 return (sDeviceFeatures[DeviceIdx].RamEnd);
223 return (sDeviceFeatures[DeviceIdx].MainStart);
word Device_MainStart(void)
This function returns the start address of the device's main memory.
Device Function Prototypes and Definitions for FLASH programming.
bool DeviceHas_FastFlash(void)
Function to check if current device supports FastFlash.
bool DeviceHas_SpyBiWire(void)
Function to check if current device supports SpyBiWire.
bool DeviceHas_JTAG(void)
Function to check if current device supports JTAG.
bool DeviceHas_TestPin(void)
Function to check if current device has a test pin.
bool DeviceHas_DataQuick(void)
Function to check if current device supports DataQuick.
bool DeviceHas_CpuX(void)
Function to check if current device has the extended CPUX.
Declaration of a struct type that holds all necessary device information.
bool DeviceHas_EnhVerify(void)
Function to check if current device supports EnhVerify.
word Device_RamStart(void)
This function returns the start address of the device's RAM.
word Device_RamEnd(void)
This function returns the end address of the device's RAM.
void SetDevice(word wDeviceId)
This function accepts a Device ID and extracts the corresponding device information from the sDeviceF...