libeismultiplexer 1.0.x
libeismultiplexer manual

libeismultiplexer is a shared library that allows you to control EISmultiplexer devices. For build instructions please see the Readme.

An API reference can be found here: User API

Example usage:


#include <stdio.h>
#include "eismultiplexer.h"
int main(int argc, char* argv[])
{
// Each connection to a device is required to have a corresponding eismultiplexer struct
struct eismultiplexer multiplexer;
// Connect to the first device found
int ret = eismultiplexer_connect(&multiplexer, 0);
if(ret != 0)
{
printf("Can not connect to EISmultiplexer device\n");
return 1;
}
// Connect channels A and C to the common output
ret = eismultiplexer_connect_channel(&multiplexer, CHANNEL_A | CHANNEL_C);
if(ret != 0)
{
printf("Failure to communicate with the device\n");
return 1;
}
// Disconnect from device
return 0;
}
int eismultiplexer_connect_channel(struct eismultiplexer *muliplexer, channel_t channel)
Connects the given channel(s) to the common inputs.
void eismultiplexer_disconnect(struct eismultiplexer *muliplexer)
Disconnects from the eismultiplexer.
int eismultiplexer_connect(struct eismultiplexer *muliplexer, uint16_t serial)
Attempts to connect to a EISmultiplexer device and initializes a eismultiplexer struct.
Definition eismultiplexer.h:56

libeismultiplexer is licensed to you under the BSD-3-CLAUSE license