72 static word DeviceIdx = 0;
97 { 0xF112, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xF000 },
98 { 0x1132, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
99 { 0xF123, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
100 { 0x1232, TRUE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
102 { 0xF149, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
104 { 0xF169, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
105 { 0xF16C, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x1100, 0x24FF, 0x8000 },
106 { 0xF201, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , TRUE , 0x0200, 0x027F, 0xF800 },
108 { 0xF213, TRUE, FALSE, TRUE , TRUE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
110 { 0xF227, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , TRUE , 0x0200, 0x05FF, 0x8000 },
111 { 0xF237, TRUE, FALSE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x0200, 0x09FF, 0x8000 },
115 { 0xF249, FALSE, FALSE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
117 { 0xF26F, FALSE, TRUE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x1100, 0x20FF, 0x2100 },
118 { 0xF413, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
119 { 0xF427, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 },
120 { 0xF437, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x05FF, 0xA000 },
121 { 0xF439, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
123 { 0xF449, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x09FF, 0x1100 },
124 { 0xF46F, FALSE, TRUE, TRUE , TRUE, TRUE, TRUE , FALSE , 0x1100, 0x20FF, 0x2100 },
125 { 0xFFFF, FALSE, FALSE, TRUE , FALSE, FALSE, TRUE , FALSE , 0x0200, 0x02FF, 0xE000 }
138 for(DeviceIdx = 0; DeviceIdx < (
sizeof(sDeviceFeatures)/
sizeof(*sDeviceFeatures)); DeviceIdx++)
140 if(sDeviceFeatures[DeviceIdx].Id == wDeviceId)
151 return (sDeviceFeatures[DeviceIdx].TestPin);
158 return (sDeviceFeatures[DeviceIdx].CpuX);
165 return (sDeviceFeatures[DeviceIdx].DataQuick);
172 return (sDeviceFeatures[DeviceIdx].FastFlash);
179 return (sDeviceFeatures[DeviceIdx].EnhVerify);
186 return (sDeviceFeatures[DeviceIdx].JTAG);
193 return (sDeviceFeatures[DeviceIdx].SpyBiWire);
200 return (sDeviceFeatures[DeviceIdx].RamStart);
207 return (sDeviceFeatures[DeviceIdx].RamEnd);
215 return (sDeviceFeatures[DeviceIdx].MainStart);
bool DeviceHas_SpyBiWire(void)
Function to check if current device supports SpyBiWire.
word Device_RamStart(void)
This function returns the start address of the device's RAM.
word Device_MainStart(void)
This function returns the start address of the device's main memory.
bool DeviceHas_CpuX(void)
Function to check if current device has the extended CPUX.
bool DeviceHas_FastFlash(void)
Function to check if current device supports FastFlash.
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_EnhVerify(void)
Function to check if current device supports EnhVerify.
Device Function Prototypes and Definitions for FLASH programming.
word Device_RamEnd(void)
This function returns the end address of the device's RAM.
Declaration of a struct type that holds all necessary device information.
void SetDevice(word wDeviceId)
This function accepts a Device ID and extracts the corresponding device information from the sDeviceF...