liblabpro
Portable C library for data collection from Vernier LabPro devices
|
Data Structures | |
struct | LabPro_Context |
Thin wrapper around libusb_context. More... | |
struct | LabPro_List |
Struct acting as an array of LabPros. More... | |
Functions | |
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... | |
void LabPro_close_labpro | ( | LabPro * | labpro | ) |
Close the LabPro.
Close a LabPro, releasing its USB interface and closing its libusb device handle.
labpro | A pointer to the LabPro to close. |
Definition at line 180 of file liblabpro.c.
void LabPro_exit | ( | LabPro_Context * | context | ) |
De-initialize liblabpro.
Definition at line 59 of file liblabpro.c.
int LabPro_init | ( | LabPro_Context * | context | ) |
Initialize liblabpro. Currently just a wrapper around libusb_init().
context | A pointer to a liblabpro context to be populated. |
Definition at line 46 of file liblabpro.c.
LabPro_List LabPro_list_labpros | ( | LabPro_Context * | context | ) |
Obtain a list connected LabPro devices.
This function attempts to open and claim the USB interface for each LabPro, so the application should call LabPro_close_labpro() on each LabPro in the LabPro_List that will not be used.
context | A pointer to the liblabpro context. |
Definition at line 63 of file liblabpro.c.