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

Defines a structure for a resource on the device. More...

#include <scriptel-hid-reports.h>

Data Fields

unsigned char report_id
 Report ID, should always be SCRIPTEL_FEATURE_RESOURCE.
 
unsigned char resource_number
 index of the resource on the device.
 
scriptel_resource_type resource_type
 Defines what kind of resource this currently represents.
 
unsigned char reserved_1
 Reserved for future use.
 
unsigned char reserved_2
 Reserved for future use.
 
unsigned long resource_size
 The total size of the resource in bytes. More...
 
unsigned long resource_crc
 CRC32 used to authenticate the resource.
 
unsigned char reserved_3
 Reserved for future use.
 
unsigned char reserved_4
 Reserved for future use.
 
unsigned char reserved_5
 Reserved for future use.
 
unsigned char reserved_6
 Reserved for future use.
 
unsigned char reserved_7
 Reserved for future use.
 
unsigned char reserved_8
 Reserved for future use.
 
unsigned short bytes_valid
 Number of valid bytes incoming or outgoing in this structure.
 
unsigned char resource_data [1024]
 The data, in bytes.
 

Detailed Description

Defines a structure for a resource on the device.

If the resource is bigger than 1024 byte, this structure needs to be called multiple times to get or set a resource. If used to get a resource, resource index will be represented by the resource index.

Examples
example-screen-editing.c.

Field Documentation

◆ resource_size

unsigned long resource_size

The total size of the resource in bytes.

If this is greater than 1024, then this structure represents a portion of the resource.

Examples
example-screen-editing.c.

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