#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <sys/termios.h>
#include <fcntl.h>
#include "nsds_util.h"
#include "flog.h"
#include "adxl_util.h"
Go to the source code of this file.
Functions | |
int | adxl_open (const char *COMPORT_FILE) |
Open port and configure control lines, etc. | |
int | adxl_read (const int COMM_FD, adxl_reading_t *result) |
Read a single set of values from the ADXL board. | |
int | adxl_close (const int COMM_FD) |
Simple wrapper to close the port. | |
void | adxl_sighandler (int signal) |
Control-break handler. Sets global flag to indicate exit request. | |
Variables | |
bool | control_break |
Global boolean set by signal handler to force exit. |
Definition in file adxl_util.c.
|
Simple wrapper to close the port. ... which releases the control lines and shuts down the DAQ.
Definition at line 182 of file adxl_util.c. Referenced by adxl_do_work(), and daq_thread_main(). |
|
Open port and configure control lines, etc. Function to open the serial port and set up the rather peculiar comms requirements of the ADXL202: 38400 baud, N81 No flow control (?) Powered by RTS
Definition at line 47 of file adxl_util.c. Referenced by adxl_do_work(), and daq_thread_main(). |
|
Read a single set of values from the ADXL board.
Definition at line 118 of file adxl_util.c. References ADXL_READ_LEN, adxl_reading_t::G, and adxl_reading_t::raw. Referenced by adxl_do_work(), and daq_thread_main(). |
|
Control-break handler. Sets global flag to indicate exit request.
Definition at line 202 of file adxl_util.c. References control_break. Referenced by main(). |
|
Global boolean set by signal handler to force exit.
Definition at line 26 of file adxl_util.c. Referenced by adxl_do_work(), adxl_sighandler(), daq_main_loop(), daq_thread_main(), and main(). |