TicalcFncts Structure

calc_def.h

struct TicalcFncts

Fields

int (*supported_operations) (void)
the operations supported by the current calc model


int is_silent
set to non-0 if calculator has silent link capabilities
int has_folder
set to non-0 if directory list can contain folders
TicalcMemoryType memory
tells wether ticalcfncts.directorylist returns memory used or free


int (*isready) (void)
chech whether calc is ready


int (*send_key) (uint16_t key)
send a TI scan code
int (*screendump) (uint8_t **bitmap, int mode,

TicalcScreenCoord *sc)
dump the calculator screen
int (*directorylist) (TNode **tree, uint32_t *memory)
do directory listing


int (*recv_backup) (const char *filename, int mode)
receive a backup
int (*send_backup) (const char *filename, int mode)
send a backup


int (*recv_var) ( char *filename, int mode, TiVarEntry *ve)
receive one or more variables
int (*send_var) (const char *filename, int mode, char **actions)
send one or more variables


int (*send_flash) (const char *filename, int mode)
send one FLASH application
int (*recv_flash) (const char *filename, int mask_mode, TiVarEntry *ve)
receive a FLASH application
int (*get_idlist) (char *idlist)
retrieve the calculator ID list


int (*dump_rom) (const char *filename, int mode)
dump the ROM of the calculator


int (*set_clock) (const TicalcClock *clock, int mode)
set clock
int (*get_clock) ( TicalcClock *clock, int mode)
retrieve clock


Summary

Structure used to handle a calculator trough a set of abstract functions.

Description

This structure provides a set of functions (function pointers) to access a calculator independantly of the model. Before using this structure, you must set a calculator model properly.

See also


Return to the API index