Scriptel ScripTouch ProScript C Library
This documentation contains information about the ScripTouch ProScript C Library.
Data Fields
scriptel_hid_feature_firmware_download Struct Reference

This report is capable of uploading a new page of firmware to the device. More...

#include <scriptel-hid-reports.h>

Data Fields

unsigned char report_id
 Report ID - Should always be SCRIPTEL_FEATURE_FIRMWAREDOWNLOAD.
 
unsigned int address
 Address of the memory page to overwrite.
 
unsigned char data [128]
 Block of 128 unsigned chars making up the page to overwrite memory with.
 
unsigned char checksum
 The checksum of the data. More...
 

Detailed Description

This report is capable of uploading a new page of firmware to the device.

Field Documentation

◆ checksum

unsigned char checksum

The checksum of the data.

The checksum can be calculated using the following algorithm:

long checksum = 0;
for(int i=1;i<data.length;i++) {
checksum -= data[i];
}
checksum &= 0xFF;
unsigned char checksum
The checksum of the data.
Definition: scriptel-hid-reports.h:1632
unsigned char data[128]
Block of 128 unsigned chars making up the page to overwrite memory with.
Definition: scriptel-hid-reports.h:1620

The documentation for this struct was generated from the following file: