public class PMApplication extends CommonApplication
Modifier and Type | Field and Description |
---|---|
ChipID |
CHIP_AD5940 |
ChipID |
CHIP_AD7156 |
ChipID |
CHIP_ADP5360 |
ChipID |
CHIP_ADPD4K |
ChipID |
CHIP_ADXL362 |
ChipID |
CHIP_NAND_FLASH |
Constructor and Description |
---|
PMApplication(PacketManager packetManager) |
Modifier and Type | Method and Description |
---|---|
DCBStatusPacket |
deviceConfigurationBlockStatus()
Display dcb status of all applications.
|
CommandPacket |
disableBatteryCharging()
Returns Device system info.
|
HibernateModePacket |
disableHibernateMode()
Disable the hibernate mode status in the Watch Fw.
|
SyncTimerPacket |
disableSyncTimer()
Disable Sync Timer
|
TopTouchControlPacket |
disableTopTouch()
This API is used to disable top touch application(backlight control) in Fw.
|
CommandPacket |
disableTouchSensor()
Disables touch sensor.
|
CommandPacket |
enableBatteryCharging()
Returns Device system info.
|
HibernateModePacket |
enableHibernateMode(int secondsToTrigger)
Enable the hibernate mode status in the Watch Fw.
|
SyncTimerPacket |
enableSyncTimer()
Enables Sync Timer
|
TopTouchControlPacket |
enableTopTouch()
This API is used to enable top touch application(backlight control) in Fw.
|
CommandPacket |
enableTouchSensor()
Enables touch sensor.
|
void |
enterBootLoaderMode()
Sets the device to boot loader mode.
|
CommandPacket |
fdsErase()
Erases the NOR flash pages reserved for FDS;
This command will result in BLE disconnection and watch reset.
|
BootloaderVersionPacket |
getBootLoaderVersion()
Get the bootloader's version information, if Bootloader is present in the Watch.
|
ChipIDPacket |
getChipID(ChipID chipName)
Returns chip id for specified chip name.
|
DateTimePacket |
getDatetime()
Returns device current datetime.
|
ToolAddressPacket |
getExistingConnection()
Connect to serial device over USB or BLE, after checking if there is previous tool staying connected to the watch.
|
HibernateModePacket |
getHibernateMode()
Get the hibernate mode status- enabled/disabled in the Watch Fw.
|
CommandPacket |
getLowTouchStatus()
Returns low touch status.
|
MCUVersionPacket |
getMcuVersion()
Returns Device MCU version.
|
ChipID[] |
getSupportedChips()
List all supported chips for PM.
|
SystemInfoPacket |
getSystemInfo()
Returns Device system info.
|
TopTouchControlPacket |
getTopTouchStatus()
This API is used to get the status of top touch application(backlight control) in Fw,
whether it is enabled or disabled
|
VersionPacket |
getVersion()
Returns Device version info.
|
CommandPacket |
loadConfiguration()
This command must be used every time after PM DCB write/erase to update the device
configuration.
|
UICRCustomerRegistersPacket |
readUICRCustomerRegisters()
Read UICR customer Register.
|
CommandPacket |
setDatetime(java.util.Calendar calendar)
Set specified datetime to device.
|
SyncTimerPacket |
startSyncTimer()
Starts Sync Timer
|
SyncTimerPacket |
stopSyncTimer()
Stops Sync Timer
|
CommandPacket |
systemHardwareReset()
Reset device hardware.
|
CommandPacket |
systemReset()
Reset device system.
|
UICRCustomerRegistersPacket |
writeUICRCustomerRegisters(java.lang.String hwRevision)
Writes to UICR customer Register.
|
UICRCustomerRegistersPacket |
writeUICRCustomerRegisters(java.lang.String hwRevision,
java.lang.String dateTime)
Writes to UICR customer Register.
|
setTimeout
public ChipID CHIP_AD7156
public ChipID CHIP_ADPD4K
public ChipID CHIP_AD5940
public ChipID CHIP_ADXL362
public ChipID CHIP_ADP5360
public ChipID CHIP_NAND_FLASH
public PMApplication(PacketManager packetManager)
public DCBStatusPacket deviceConfigurationBlockStatus()
public CommandPacket disableTouchSensor()
public CommandPacket enableTouchSensor()
public void enterBootLoaderMode()
public ChipIDPacket getChipID(ChipID chipName)
chipName
- get chip id of the chip_name, use getSupportedChips() to list all support chip names.public DateTimePacket getDatetime()
public CommandPacket getLowTouchStatus()
public MCUVersionPacket getMcuVersion()
public ChipID[] getSupportedChips()
public SystemInfoPacket getSystemInfo()
public CommandPacket enableBatteryCharging()
public CommandPacket disableBatteryCharging()
public VersionPacket getVersion()
public CommandPacket setDatetime(java.util.Calendar calendar)
public CommandPacket systemHardwareReset()
public CommandPacket systemReset()
public UICRCustomerRegistersPacket readUICRCustomerRegisters()
public UICRCustomerRegistersPacket writeUICRCustomerRegisters(java.lang.String hwRevision)
The following information is written to UICR. Hardcoded information: manufacturer_name "ADI", model_number "EVAL-HCRWATCH4Z hw_revision "4.3.00" serial_number 12 bytes BLE MAC address manufacture_date is current system date manufacture_date This is optional.
public UICRCustomerRegistersPacket writeUICRCustomerRegisters(java.lang.String hwRevision, java.lang.String dateTime)
The following information is written to UICR. Hardcoded information: manufacturer_name "ADI", model_number "EVAL-HCRWATCH4Z hw_revision "4.3.00" serial_number 12 bytes BLE MAC address manufacture_date is current system date manufacture_date This is optional.
public SyncTimerPacket enableSyncTimer()
public SyncTimerPacket disableSyncTimer()
public SyncTimerPacket startSyncTimer()
public SyncTimerPacket stopSyncTimer()
public TopTouchControlPacket enableTopTouch()
public TopTouchControlPacket disableTopTouch()
public TopTouchControlPacket getTopTouchStatus()
public CommandPacket loadConfiguration()
public CommandPacket fdsErase()
public HibernateModePacket enableHibernateMode(int secondsToTrigger)
public HibernateModePacket disableHibernateMode()
public HibernateModePacket getHibernateMode()
public ToolAddressPacket getExistingConnection()
public BootloaderVersionPacket getBootLoaderVersion()