<cahute/link.h>
– Calculator link resource and methods for Cahute¶
This header declares link-related utilities for Cahute.
Type definitions¶
-
struct cahute_device_info¶
Device information.
-
unsigned long cahute_device_info_flags¶
Flags for the link information.
-
CAHUTE_DEVICE_INFO_FLAG_PREPROG¶
Preprogrammed ROM information available.
-
CAHUTE_DEVICE_INFO_FLAG_BOOTCODE¶
Bootcode information available.
-
CAHUTE_DEVICE_INFO_FLAG_OS¶
OS information available.
-
CAHUTE_DEVICE_INFO_FLAG_PREPROG¶
-
unsigned long cahute_device_info_rom_capacity¶
Preprogrammed ROM capacity, in KiB.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_PREPROG
flag is set.
-
char const *cahute_device_info_rom_version¶
Preprogrammed ROM version.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_PREPROG
flag is set.
-
unsigned long cahute_device_info_flash_rom_capacity¶
Flash ROM capacity, in KiB.
-
unsigned long cahute_device_info_ram_capacity¶
RAM capacity, in KiB.
-
char const *cahute_device_info_bootcode_version¶
Bootcode version.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_BOOTCODE
flag is set.
-
unsigned long cahute_device_info_bootcode_offset¶
Bootcode offset.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_BOOTCODE
flag is set.
-
unsigned long cahute_device_info_bootcode_size¶
Bootcode size, in KiB.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_BOOTCODE
flag is set.
-
char const *cahute_device_info_os_version¶
OS version.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_OS
flag is set.
-
unsigned long cahute_device_info_os_offset¶
OS offset.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_OS
flag is set.
-
unsigned long cahute_device_info_os_size¶
OS size, in KiB.
Only available if the
CAHUTE_DEVICE_INFO_FLAG_OS
flag is set.
-
char const *cahute_device_info_product_id¶
Null-terminated product identifier, up to 16 characters.
-
char const *cahute_device_info_username¶
Null-terminated username, up to 20 characters long.
-
char const *cahute_device_info_organisation¶
Null-terminated organisation, up to 20 characters long.
-
char const *cahute_device_info_hwid¶
Null-terminated hardware identifier, up to 8 characters.
-
char const *cahute_device_info_cpuid¶
Null-terminated hardware platform identifier, up to 16 characters.
-
unsigned long cahute_device_info_flags¶
-
struct cahute_storage_entry¶
Entry when listing the contents of a storage device or directory.
-
char const *cahute_storage_entry_directory¶
If the entry is a directory, the name of the directory.
If the entry is a file, the optional name of the directory in which the file is present; this can be set to
NULL
if the file is present at root.
-
char const *cahute_storage_entry_name¶
If the entry is a directory, this is set to
NULL
.If the entry is a file, the file name.
-
unsigned long cahute_storage_entry_size¶
Size in bytes of the file.
-
char const *cahute_storage_entry_directory¶
-
struct cahute_link¶
Link to a calculator, that can be used to run operations on the calculator, or receive data such as screenstreaming data.
This type is opaque, and such resources must be created using
cahute_open_usb_link()
,cahute_open_simple_usb_link()
orcahute_open_serial_link()
.
-
typedef int (cahute_confirm_overwrite_func)(void *cookie)¶
Function that can be called to confirm overwrite.
See
cahute_send_file_to_storage()
for more information.
-
typedef int (cahute_list_storage_entry_func)(void *cookie, cahute_storage_list_entry const *entry)¶
Function that can be called for every storage device entry.
See
cahute_list_storage_entries()
for more information.
-
typedef int (cahute_progress_func)(void *cookie, unsigned long step, unsigned long total)¶
Function that can be called to display progress, when step
step
out oftotal
has just finished.See
cahute_send_file_to_storage()
andcahute_request_file_from_storage()
for more information.