liblabpro
Portable C library for data collection from Vernier LabPro devices
Features specific to the LabPro itself (not sensors)

Data Structures

struct  LabPro
 Struct representing a LabPro device. More...
 

Enumerations

enum  LabPro_Battery_Level { LABPRO_BATTERY_OK, LABPRO_BATTERY_LOW_WHILE_SAMPLING, LABPRO_BATTERY_LOW }
 Battery levels reported by the LabPro. More...
 
enum  LabPro_System_Status {
  LABPRO_SYSSTATUS_IDLE = 1, LABPRO_SYSSTATUS_ARMED = 2, LABPRO_SYSSTATUS_BUSY = 3, LABPRO_SYSSTATUS_DONE = 4,
  LABPRO_SYSSTATUS_SELFTEST = 5, LABPRO_SYSSTATUS_INIT = 99
}
 LabPro system status. More...
 

Functions

int LabPro_reset (LabPro *labpro, bool force)
 Send a reset command to the specified LabPro. More...
 

Detailed Description

Enumeration Type Documentation

◆ LabPro_Battery_Level

Battery levels reported by the LabPro.

Enumerator
LABPRO_BATTERY_OK 
LABPRO_BATTERY_LOW_WHILE_SAMPLING 
LABPRO_BATTERY_LOW 

Definition at line 103 of file liblabpro.h.

◆ LabPro_System_Status

LabPro system status.

Enumerator
LABPRO_SYSSTATUS_IDLE 

The LabPro is waiting for a command.

LABPRO_SYSSTATUS_ARMED 

The LabPro is watching for a trigger condition to start collecting data.

LABPRO_SYSSTATUS_BUSY 

The LabPro is currently collecting data.

LABPRO_SYSSTATUS_DONE 

The LabPro is waiting for a "get" command to fetch the collected data.

LABPRO_SYSSTATUS_SELFTEST 

The LabPro's self-test is running.

LABPRO_SYSSTATUS_INIT 

The LabPro is initializing.

Definition at line 228 of file liblabpro.h.

Function Documentation

◆ LabPro_reset()

int LabPro_reset ( LabPro labpro,
bool  force 
)

Send a reset command to the specified LabPro.

This clears all stored data collection info, error info, and channel setup. This does not erase the LabPro's flash memory, only the RAM.

Parameters
labproPointer to the LabPro to act on.
forceWhether to force a reset even if the LabPro is busy
Returns
int One of the LabPro_Errors codes or LABPRO_OK

Definition at line 186 of file liblabpro.c.