Classes | Defines | Typedefs | Functions
biotac.h File Reference
#include "cheetah.h"
Include dependency graph for biotac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bt_data
struct  bt_info
struct  bt_property

Defines

#define BT_AFTERSAMPLE_DELAY_DEFAULT   50000 /* Delay after sampling command */
#define BT_BATCH_MS_DEFAULT   50
#define BT_CPU_SPEED_READ_COMMAND   0x61
#define BT_CPU_SPEED_READ_LENGTH   2
#define BT_DATA_SIZE_TOO_SMALL   -4
#define BT_E01_SAMPLING   17
#define BT_E01_SAMPLING_COMMAND   0xA2
#define BT_E02_SAMPLING   18
#define BT_E02_SAMPLING_COMMAND   0xA4
#define BT_E03_SAMPLING   19
#define BT_E03_SAMPLING_COMMAND   0xA7
#define BT_E04_SAMPLING   20
#define BT_E04_SAMPLING_COMMAND   0xA8
#define BT_E05_SAMPLING   21
#define BT_E05_SAMPLING_COMMAND   0xAB
#define BT_E06_SAMPLING   22
#define BT_E06_SAMPLING_COMMAND   0xAD
#define BT_E07_SAMPLING   23
#define BT_E07_SAMPLING_COMMAND   0xAE
#define BT_E08_SAMPLING   24
#define BT_E08_SAMPLING_COMMAND   0xB0
#define BT_E09_SAMPLING   25
#define BT_E09_SAMPLING_COMMAND   0xB3
#define BT_E10_SAMPLING   26
#define BT_E10_SAMPLING_COMMAND   0xB5
#define BT_E11_SAMPLING   27
#define BT_E11_SAMPLING_COMMAND   0xB6
#define BT_E12_SAMPLING   28
#define BT_E12_SAMPLING_COMMAND   0xB9
#define BT_E13_SAMPLING   29
#define BT_E13_SAMPLING_COMMAND   0xBA
#define BT_E14_SAMPLING   30
#define BT_E14_SAMPLING_COMMAND   0xBC
#define BT_E15_SAMPLING   31
#define BT_E15_SAMPLING_COMMAND   0xBF
#define BT_E16_SAMPLING   32
#define BT_E16_SAMPLING_COMMAND   0xC1
#define BT_E17_SAMPLING   33
#define BT_E17_SAMPLING_COMMAND   0xC2
#define BT_E18_SAMPLING   34
#define BT_E18_SAMPLING_COMMAND   0xC4
#define BT_E19_SAMPLING   35
#define BT_E19_SAMPLING_COMMAND   0xC7
#define BT_ERROR_CHANNEL_NOT_RECOGNIZED   0xA558
#define BT_ERROR_ERROR_WRITING_DATA   0xA557
#define BT_ERROR_INSUFFICIENT_DELAY   0xA52E
#define BT_ERROR_INSUFFICIENT_SAMPLING_DELAY   0xA52D
#define BT_ERROR_NO_DATA_TO_RESEND   0xA55F
#define BT_ERROR_PARAMETER_IS_READ_ONLY   0xA552
#define BT_ERROR_PARITY_CHECK   0xA545
#define BT_ERROR_UNKNOWN_COMMAND   0xA53F
#define BT_FIRMWARE_VERSION_READ_COMMAND   0x13
#define BT_FIRMWARE_VERSION_READ_LENGTH   4
#define BT_FLEX_VERSIOM_READ_LENGTH   2
#define BT_FLEX_VERSION_READ_COMMAND   0x10
#define BT_FRAME_STRUCTURE_DEFAULT
#define BT_FRAMES_IN_BATCH_DEFAULT   5
#define BT_HAL_SAMPLING_COMMAND   0x9E
#define BT_INTERWORD_DELAY_DEFAULT   10000 /* Delay between words in communication */
#define BT_NO_BIOTAC_DETECTED   -2
#define BT_NO_CHEETAH_DETECTED   -5
#define BT_OK   0
#define BT_PAC_SAMPLING   0
#define BT_PAC_SAMPLING_COMMAND   0x80
#define BT_PDC_SAMPLING   1
#define BT_PDC_SAMPLING_COMMAND   0x83
#define BT_READ_COMMAND   0x61
#define BT_READ_PROPERTY_COMMAND_ARRAY
#define BT_RESEND_COMMAND   0x20
#define BT_SAMPLE_RATE_HZ_DEFAULT   4400
#define BT_SAMPLING_FREQUENCY_READ_COMMAND   0x70
#define BT_SAMPLING_FREQUENCY_READ_LENGTH   2
#define BT_SAMPLING_PATTERN_READ_COMMAND   0x73
#define BT_SAMPLING_PATTERN_READ_LENGTH   44
#define BT_SERIAL_NUMBER_READ_COMMAND   0x15
#define BT_SERIAL_NUMBER_READ_LENGTH   16
#define BT_SPI_BITRATE_KHZ_DEFAULT   4400
#define BT_TAC_SAMPLING   2
#define BT_TAC_SAMPLING_COMMAND   0x85
#define BT_TDC_SAMPLING   3
#define BT_TDC_SAMPLING_COMMAND   0x86
#define BT_UNABLE_TO_OPEN_CHEETAH   -6
#define BT_UNABLE_TO_OPEN_FILE   -7
#define BT_WRONG_MAX_BIOTAC_NUMBER   -3
#define BT_WRONG_NUMBER_ASSIGNED   -1
#define COMMAND_LENGTH_BYTE   2
#define CS_ALL_BT   0x07
#define CS_BT1   0x01
#define CS_BT2   0x02
#define CS_BT3   0x04
#define CS_NONE_BT   0x00
#define MAX_BIOTACS_PER_CHEETAH   3
#define NO   (BOOL)0
#define PARITY_BAD   (BOOL)!PARITY_GOOD
#define PARITY_GOOD   (BOOL)0
#define PRINT_ON   0
#define SAMPLE_COMMAND   0x80
#define YES   (BOOL)1

Typedefs

typedef int BioTac
typedef int BOOL

Functions

void bt_cheetah_close (Cheetah ch_handle)
void bt_cheetah_collect_batch (Cheetah ch_handle, const bt_info *biotac, bt_data *data, BOOL print_flag)
BioTac bt_cheetah_configure_batch (Cheetah ch_handle, bt_info *biotac, int num_samples)
BioTac bt_cheetah_get_properties (Cheetah ch_handle, int bt_select, bt_property *property)
BioTac bt_cheetah_initialize (const bt_info *biotac, Cheetah *ch_handle)
bt_databt_configure_save_buffer (int num_samples)
void bt_display_errors (BioTac bt_err_code)
BioTac bt_save_buffer_data (const char *file_name, const bt_data *data, int num_samples)

Define Documentation

#define BT_AFTERSAMPLE_DELAY_DEFAULT   50000 /* Delay after sampling command */

Definition at line 10 of file biotac.h.

#define BT_BATCH_MS_DEFAULT   50

Definition at line 14 of file biotac.h.

#define BT_CPU_SPEED_READ_COMMAND   0x61

Definition at line 120 of file biotac.h.

#define BT_CPU_SPEED_READ_LENGTH   2

Definition at line 121 of file biotac.h.

#define BT_DATA_SIZE_TOO_SMALL   -4

Definition at line 153 of file biotac.h.

#define BT_E01_SAMPLING   17

Definition at line 58 of file biotac.h.

#define BT_E01_SAMPLING_COMMAND   0xA2

Definition at line 85 of file biotac.h.

#define BT_E02_SAMPLING   18

Definition at line 59 of file biotac.h.

#define BT_E02_SAMPLING_COMMAND   0xA4

Definition at line 86 of file biotac.h.

#define BT_E03_SAMPLING   19

Definition at line 60 of file biotac.h.

#define BT_E03_SAMPLING_COMMAND   0xA7

Definition at line 87 of file biotac.h.

#define BT_E04_SAMPLING   20

Definition at line 61 of file biotac.h.

#define BT_E04_SAMPLING_COMMAND   0xA8

Definition at line 88 of file biotac.h.

#define BT_E05_SAMPLING   21

Definition at line 62 of file biotac.h.

#define BT_E05_SAMPLING_COMMAND   0xAB

Definition at line 89 of file biotac.h.

#define BT_E06_SAMPLING   22

Definition at line 63 of file biotac.h.

#define BT_E06_SAMPLING_COMMAND   0xAD

Definition at line 90 of file biotac.h.

#define BT_E07_SAMPLING   23

Definition at line 64 of file biotac.h.

#define BT_E07_SAMPLING_COMMAND   0xAE

Definition at line 91 of file biotac.h.

#define BT_E08_SAMPLING   24

Definition at line 65 of file biotac.h.

#define BT_E08_SAMPLING_COMMAND   0xB0

Definition at line 92 of file biotac.h.

#define BT_E09_SAMPLING   25

Definition at line 66 of file biotac.h.

#define BT_E09_SAMPLING_COMMAND   0xB3

Definition at line 93 of file biotac.h.

#define BT_E10_SAMPLING   26

Definition at line 67 of file biotac.h.

#define BT_E10_SAMPLING_COMMAND   0xB5

Definition at line 94 of file biotac.h.

#define BT_E11_SAMPLING   27

Definition at line 68 of file biotac.h.

#define BT_E11_SAMPLING_COMMAND   0xB6

Definition at line 95 of file biotac.h.

#define BT_E12_SAMPLING   28

Definition at line 69 of file biotac.h.

#define BT_E12_SAMPLING_COMMAND   0xB9

Definition at line 96 of file biotac.h.

#define BT_E13_SAMPLING   29

Definition at line 70 of file biotac.h.

#define BT_E13_SAMPLING_COMMAND   0xBA

Definition at line 97 of file biotac.h.

#define BT_E14_SAMPLING   30

Definition at line 71 of file biotac.h.

#define BT_E14_SAMPLING_COMMAND   0xBC

Definition at line 98 of file biotac.h.

#define BT_E15_SAMPLING   31

Definition at line 72 of file biotac.h.

#define BT_E15_SAMPLING_COMMAND   0xBF

Definition at line 99 of file biotac.h.

#define BT_E16_SAMPLING   32

Definition at line 73 of file biotac.h.

#define BT_E16_SAMPLING_COMMAND   0xC1

Definition at line 100 of file biotac.h.

#define BT_E17_SAMPLING   33

Definition at line 74 of file biotac.h.

#define BT_E17_SAMPLING_COMMAND   0xC2

Definition at line 101 of file biotac.h.

#define BT_E18_SAMPLING   34

Definition at line 75 of file biotac.h.

#define BT_E18_SAMPLING_COMMAND   0xC4

Definition at line 102 of file biotac.h.

#define BT_E19_SAMPLING   35

Definition at line 76 of file biotac.h.

#define BT_E19_SAMPLING_COMMAND   0xC7

Definition at line 103 of file biotac.h.

#define BT_ERROR_CHANNEL_NOT_RECOGNIZED   0xA558

Definition at line 143 of file biotac.h.

#define BT_ERROR_ERROR_WRITING_DATA   0xA557

Definition at line 146 of file biotac.h.

#define BT_ERROR_INSUFFICIENT_DELAY   0xA52E

Definition at line 141 of file biotac.h.

Definition at line 142 of file biotac.h.

#define BT_ERROR_NO_DATA_TO_RESEND   0xA55F

Definition at line 144 of file biotac.h.

#define BT_ERROR_PARAMETER_IS_READ_ONLY   0xA552

Definition at line 145 of file biotac.h.

#define BT_ERROR_PARITY_CHECK   0xA545

Definition at line 139 of file biotac.h.

#define BT_ERROR_UNKNOWN_COMMAND   0xA53F

Definition at line 140 of file biotac.h.

Definition at line 114 of file biotac.h.

Definition at line 115 of file biotac.h.

Definition at line 112 of file biotac.h.

#define BT_FLEX_VERSION_READ_COMMAND   0x10

Definition at line 111 of file biotac.h.

Definition at line 13 of file biotac.h.

#define BT_HAL_SAMPLING_COMMAND   0x9E

Definition at line 83 of file biotac.h.

#define BT_INTERWORD_DELAY_DEFAULT   10000 /* Delay between words in communication */

Definition at line 11 of file biotac.h.

#define BT_NO_BIOTAC_DETECTED   -2

Definition at line 151 of file biotac.h.

#define BT_NO_CHEETAH_DETECTED   -5

Definition at line 154 of file biotac.h.

#define BT_OK   0

Definition at line 149 of file biotac.h.

#define BT_PAC_SAMPLING   0

Definition at line 53 of file biotac.h.

#define BT_PAC_SAMPLING_COMMAND   0x80

Definition at line 78 of file biotac.h.

#define BT_PDC_SAMPLING   1

Definition at line 54 of file biotac.h.

#define BT_PDC_SAMPLING_COMMAND   0x83

Definition at line 79 of file biotac.h.

#define BT_READ_COMMAND   0x61

Definition at line 109 of file biotac.h.

Value:
{\
                                                        BT_FIRMWARE_VERSION_READ_COMMAND, \
                                                                                                                BT_FLEX_VERSION_READ_COMMAND, \
                                                        BT_FIRMWARE_VERSION_READ_COMMAND, \
                                                                                                                BT_SERIAL_NUMBER_READ_COMMAND,  \
                                                                                                                BT_CPU_SPEED_READ_COMMAND}

Definition at line 129 of file biotac.h.

#define BT_RESEND_COMMAND   0x20

Definition at line 106 of file biotac.h.

#define BT_SAMPLE_RATE_HZ_DEFAULT   4400

Definition at line 12 of file biotac.h.

Definition at line 123 of file biotac.h.

Definition at line 124 of file biotac.h.

Definition at line 126 of file biotac.h.

Definition at line 127 of file biotac.h.

#define BT_SERIAL_NUMBER_READ_COMMAND   0x15

Definition at line 117 of file biotac.h.

Definition at line 118 of file biotac.h.

#define BT_SPI_BITRATE_KHZ_DEFAULT   4400

Definition at line 9 of file biotac.h.

#define BT_TAC_SAMPLING   2

Definition at line 55 of file biotac.h.

#define BT_TAC_SAMPLING_COMMAND   0x85

Definition at line 80 of file biotac.h.

#define BT_TDC_SAMPLING   3

Definition at line 56 of file biotac.h.

#define BT_TDC_SAMPLING_COMMAND   0x86

Definition at line 81 of file biotac.h.

#define BT_UNABLE_TO_OPEN_CHEETAH   -6

Definition at line 155 of file biotac.h.

#define BT_UNABLE_TO_OPEN_FILE   -7

Definition at line 156 of file biotac.h.

#define BT_WRONG_MAX_BIOTAC_NUMBER   -3

Definition at line 152 of file biotac.h.

#define BT_WRONG_NUMBER_ASSIGNED   -1

Definition at line 150 of file biotac.h.

#define COMMAND_LENGTH_BYTE   2

Definition at line 50 of file biotac.h.

#define CS_ALL_BT   0x07

Definition at line 37 of file biotac.h.

#define CS_BT1   0x01

Definition at line 39 of file biotac.h.

#define CS_BT2   0x02

Definition at line 40 of file biotac.h.

#define CS_BT3   0x04

Definition at line 41 of file biotac.h.

#define CS_NONE_BT   0x00

Definition at line 38 of file biotac.h.

#define MAX_BIOTACS_PER_CHEETAH   3

Definition at line 4 of file biotac.h.

#define NO   (BOOL)0

Definition at line 221 of file biotac.h.

#define PARITY_BAD   (BOOL)!PARITY_GOOD

Definition at line 31 of file biotac.h.

#define PARITY_GOOD   (BOOL)0

Definition at line 30 of file biotac.h.

#define PRINT_ON   0

Definition at line 158 of file biotac.h.

#define SAMPLE_COMMAND   0x80

Definition at line 52 of file biotac.h.

#define YES   (BOOL)1

Definition at line 220 of file biotac.h.


Typedef Documentation

typedef int BioTac

Definition at line 168 of file biotac.h.

typedef int BOOL

Definition at line 28 of file biotac.h.


Function Documentation

void bt_cheetah_close ( Cheetah  ch_handle)

Definition at line 636 of file biotac.c.

void bt_cheetah_collect_batch ( Cheetah  ch_handle,
const bt_info biotac,
bt_data data,
BOOL  print_flag 
)

Definition at line 451 of file biotac.c.

BioTac bt_cheetah_configure_batch ( Cheetah  ch_handle,
bt_info biotac,
int  num_samples 
)

Definition at line 342 of file biotac.c.

BioTac bt_cheetah_get_properties ( Cheetah  ch_handle,
int  bt_select,
bt_property property 
)

Definition at line 186 of file biotac.c.

BioTac bt_cheetah_initialize ( const bt_info biotac,
Cheetah ch_handle 
)

Definition at line 104 of file biotac.c.

bt_data* bt_configure_save_buffer ( int  num_samples)

Definition at line 439 of file biotac.c.

void bt_display_errors ( BioTac  bt_err_code)

Definition at line 595 of file biotac.c.

BioTac bt_save_buffer_data ( const char *  file_name,
const bt_data data,
int  num_samples 
)

Definition at line 560 of file biotac.c.



biotac_sensors
Author(s): Ian McMahon
autogenerated on Thu Aug 27 2015 12:35:30