8.4 KiB
Calculator links
A link in libcasio represents a calculator over a stream, i.e. the application level. It is an abstraction which proposes everything the protocols CASIO calculator use offer, although some operations might not be implemented behind.
Links can take the following callbacks:
The process or the device on the other end requires a confirmation from the user, for which such as function is called. It shall return
0
if the user has not confirmed, or anything else if it is.
Managing a link
Only the library is able to implement link functions, in order to encourage users to contribute in the library development. Use the following functions to open and close a link:
Close the link and free all the related resources.
Link-related operations
In order to get the link information, you shall use the following function:
For managing serial settings, the following function has your back:
Screenstreaming
The logic for screenstreaming management in libcasio is kind of an infinite iterator, using the following function:
System-related operations
CASIO calculators used to provide legit ways to backup different parts of the system on flash and upload and run special executables using protocol 7, although it has been removed on modern calculators. These functions implement these procedures:
Main memory-related operations
All CASIO calculators have at least a main memory, whatever its
format is (for more about main memories, check out mcs
). You can get the
function that manages it through the link using the following:
Protocol-specific functions
While libcasio offers you an abstract interface to any calculator whatever protocol it is using, you can use the protocols directly for operations it does not manage. For this, see the following pages:
link/cas link/seven