![]() |
![]() |
Device Function Prototypes and Definitions for FLASH programming.
Definition in file Devices430X.h.
Go to the source code of this file.
Macros | |
#define | __BYTEWORD__ |
#define | TRUE 1 |
#define | FALSE 0 |
#define | ERASE_GLOB 0xA50E |
Constant for flash erase: main & info of ALL mem arrays. More... | |
#define | ERASE_ALLMAIN 0xA50C |
Constant for flash erase: main of ALL mem arrays. More... | |
#define | ERASE_MASS 0xA506 |
Constant for flash erase: main & info of SELECTED mem arrays. More... | |
#define | ERASE_MAIN 0xA504 |
Constant for flash erase: main of SELECTED mem arrays. More... | |
#define | ERASE_SGMT 0xA502 |
Constant for flash erase: SELECTED segment. More... | |
Typedefs | |
typedef unsigned int | word |
typedef unsigned char | byte |
typedef unsigned char | bool |
Functions | |
void | SetDevice (word wDeviceId) |
This function accepts a Device ID and extracts the corresponding device information from the sDeviceFeatures struct. More... | |
bool | DeviceHas_TestPin (void) |
Function to check if current device has a test pin. More... | |
bool | DeviceHas_CpuX (void) |
Function to check if current device has the extended CPUX. More... | |
bool | DeviceHas_DataQuick (void) |
Function to check if current device supports DataQuick. More... | |
bool | DeviceHas_FastFlash (void) |
Function to check if current device supports FastFlash. More... | |
bool | DeviceHas_EnhVerify (void) |
Function to check if current device supports EnhVerify. More... | |
bool | DeviceHas_JTAG (void) |
Function to check if current device supports JTAG. More... | |
bool | DeviceHas_SpyBiWire (void) |
Function to check if current device supports SpyBiWire. More... | |
word | Device_RamStart (void) |
This function returns the start address of the device's RAM. More... | |
word | Device_RamEnd (void) |
This function returns the end address of the device's RAM. More... | |
word | Device_MainStart (void) |
This function returns the start address of the device's main memory. More... | |
#define ERASE_ALLMAIN 0xA50C |
Constant for flash erase: main of ALL mem arrays.
Definition at line 74 of file Devices430X.h.
#define ERASE_GLOB 0xA50E |
Constant for flash erase: main & info of ALL mem arrays.
Definition at line 72 of file Devices430X.h.
#define ERASE_MAIN 0xA504 |
Constant for flash erase: main of SELECTED mem arrays.
Definition at line 78 of file Devices430X.h.
#define ERASE_MASS 0xA506 |
Constant for flash erase: main & info of SELECTED mem arrays.
Definition at line 76 of file Devices430X.h.
#define ERASE_SGMT 0xA502 |
Constant for flash erase: SELECTED segment.
Definition at line 80 of file Devices430X.h.
word Device_MainStart | ( | void | ) |
This function returns the start address of the device's main memory.
Definition at line 213 of file Devices430X.c.
word Device_RamEnd | ( | void | ) |
This function returns the end address of the device's RAM.
Definition at line 205 of file Devices430X.c.
word Device_RamStart | ( | void | ) |
This function returns the start address of the device's RAM.
Definition at line 198 of file Devices430X.c.
bool DeviceHas_CpuX | ( | void | ) |
Function to check if current device has the extended CPUX.
Definition at line 156 of file Devices430X.c.
bool DeviceHas_DataQuick | ( | void | ) |
Function to check if current device supports DataQuick.
Definition at line 163 of file Devices430X.c.
bool DeviceHas_EnhVerify | ( | void | ) |
Function to check if current device supports EnhVerify.
Definition at line 177 of file Devices430X.c.
bool DeviceHas_FastFlash | ( | void | ) |
Function to check if current device supports FastFlash.
Definition at line 170 of file Devices430X.c.
bool DeviceHas_JTAG | ( | void | ) |
Function to check if current device supports JTAG.
Definition at line 184 of file Devices430X.c.
bool DeviceHas_SpyBiWire | ( | void | ) |
Function to check if current device supports SpyBiWire.
Definition at line 191 of file Devices430X.c.
bool DeviceHas_TestPin | ( | void | ) |
Function to check if current device has a test pin.
Definition at line 149 of file Devices430X.c.
void SetDevice | ( | word | wDeviceId | ) |
This function accepts a Device ID and extracts the corresponding device information from the sDeviceFeatures struct.
[in] | wDeviceId | Device ID (determined at runtime) |
Definition at line 136 of file Devices430X.c.