libp7/doc/libp7.3.txt

64 lines
1.2 KiB
Plaintext

LIBP7(3)
========
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: libp7
:man manual: libp7 manual
NAME
----
libp7 - implementation of casio's communication protocol 7.00
SYNOPSIS
--------
[source,c]
----
#include <libp7.h>
int err;
p7_handle_t *handle;
err = p7_init(&handle, 1, 1);
if (err) {
printf("Couldn't initialize communication: %s\n", p7_strerror(err));
return (3);
}
FILE *fp = fopen("myaddin.g1a", "r");
err = fp ? p7_sendfile(handle, fp, NULL, "myaddin.g1a", "fls0", 1, NULL, NULL)
: p7_error_unknown;
if (err) {
printf("Couldn't send file: %s\n", p7_strerror(err));
p7_exit(handle, 1);
return (3);
}
p7_exit(handle, 1);
----
DESCRIPTION
-----------
libp7 implements casio's communication protocol 7.00, which allows users to
send and receive files and information from their calculators.
*NEVER* include the headers with the _libp7-<version>/_ prefix!
Use *pkg-config*(1) or *libp7-config*(1) to get the compilation flags
(include directories included).
SEE ALSO
--------
*p7_init*(3),
*p7_sinit*(3),
*p7_error*(3),
*p7_send*(3),
*p7_request*(3),
*p7_createdir*(3),
*p7_delete*(3),
*p7_copy*(3),
*p7_list*(3),
*p7_getfreemem*(3),
*p7_reset*(3),
*p7_optimize*(3),
*p7_sendexe*(3),
*p7_backup_rom*(3),
*p7_getscreen*(3)