liblabpro
Portable C library for data collection from Vernier LabPro devices
|
#include "liblabpro.h"
#include <libusb-1.0/libusb.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
void | LabPro_sleep (unsigned int milliseconds) |
int | LabPro_init (LabPro_Context *context) |
Initialize liblabpro. Currently just a wrapper around libusb_init(). More... | |
void | LabPro_exit (LabPro_Context *context) |
De-initialize liblabpro. More... | |
LabPro_List | LabPro_list_labpros (LabPro_Context *context) |
Obtain a list connected LabPro devices. More... | |
void | LabPro_close_labpro (LabPro *labpro) |
Close the LabPro. More... | |
int | LabPro_reset (LabPro *labpro, bool force) |
Send a reset command to the specified LabPro. More... | |
int | LabPro_check_data_session (LabPro_Data_Session *session, int **errors) |
Check a data session for problems before running it on the LabPro. More... | |
int | LabPro_send_raw (LabPro *labpro, char *command, int *length_transferred) |
Send a raw command to the LabPro. More... | |
int | LabPro_read_raw (LabPro *labpro, char **string, int *length) |
Read raw bytes from the LabPro. More... | |
int | LabPro_trim_response (char *string) |
Trim trailing junk that the LabPro sent Since the LabPro always returns data in multiples of 64 bytes, the last packet is likely to contain junk following the actual data. This replaces the trailing carriage return character with a NULL character. More... | |
void | LabPro_handle_device_disconnect (LabPro *labpro) |
void LabPro_handle_device_disconnect | ( | LabPro * | labpro | ) |
Definition at line 359 of file liblabpro.c.
void LabPro_sleep | ( | unsigned int | milliseconds | ) |
Definition at line 37 of file liblabpro.c.