Classes | Defines | Typedefs | Variables
bt_can.h File Reference
#include "bt_circular_buffer.h"
#include <stdint.h>
Include dependency graph for bt_can.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

Defines

#define ABSOLUTE_TIME   2
#define BT_AFTERSAMPLE_DELAY_DEFAULT   50000 /* Delay after sampling command */
#define BT_BATCH_MS_DEFAULT   1/BT_SAMPLE_RATE_HZ_DEFAULT*1000
#define BT_CPU_SPEED_READ_LENGTH   2
#define BT_E01_SAMPLING   17
#define BT_E02_SAMPLING   18
#define BT_E03_SAMPLING   19
#define BT_E04_SAMPLING   20
#define BT_E05_SAMPLING   21
#define BT_E06_SAMPLING   22
#define BT_E07_SAMPLING   23
#define BT_E08_SAMPLING   24
#define BT_E09_SAMPLING   25
#define BT_E10_SAMPLING   26
#define BT_E11_SAMPLING   27
#define BT_E12_SAMPLING   28
#define BT_E13_SAMPLING   29
#define BT_E14_SAMPLING   30
#define BT_E15_SAMPLING   31
#define BT_E16_SAMPLING   32
#define BT_E17_SAMPLING   33
#define BT_E18_SAMPLING   34
#define BT_E19_SAMPLING   35
#define BT_FRAME_STRUCTURE_DEFAULT
#define BT_FRAMES_IN_BATCH_DEFAULT   1
#define BT_INTERWORD_DELAY_DEFAULT   10000 /* Delay between words in communication */
#define BT_OK   0
#define BT_PAC_SAMPLING   0
#define BT_PDC_SAMPLING   1
#define BT_RTCAN_WRONG_ARGUMENT   -10
#define BT_SAMPLE_RATE_HZ_DEFAULT   3000
#define BT_SAMPLING_PATTERN_READ_LENGTH   44
#define BT_SPI_BITRATE_KHZ_DEFAULT   3000
#define BT_TAC_SAMPLING   2
#define BT_TDC_SAMPLING   3
#define BT_WRONG_MAX_BIOTAC_NUMBER   -3
#define ELAPSED   1
#define INTEGER   1
#define MACHINE_TIMER
#define MAX_BIOTACS_FOR_JACO   3
#define PARITY_BAD   (BOOL)!PARITY_GOOD
#define PARITY_BAD   (BOOL)!PARITY_GOOD
#define PARITY_GOOD   (BOOL)0
#define PARITY_GOOD   (BOOL)0
#define PARITY_NOT_AVALIBLE   -1
#define STRING   2
#define ZERO   0

Typedefs

typedef int BioTac
typedef int BOOL
typedef int8_t s08
typedef int16_t s16
typedef int32_t s32
typedef int64_t s64
typedef uint8_t u08
typedef uint16_t u16
typedef uint32_t u32
typedef uint64_t u64

Variables

static const char * command_name []
static const unsigned char parity_values []

Define Documentation

#define ABSOLUTE_TIME   2

Definition at line 111 of file bt_can.h.

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

Definition at line 15 of file bt_can.h.

Definition at line 19 of file bt_can.h.

#define BT_CPU_SPEED_READ_LENGTH   2

Definition at line 91 of file bt_can.h.

#define BT_E01_SAMPLING   17

Definition at line 70 of file bt_can.h.

#define BT_E02_SAMPLING   18

Definition at line 71 of file bt_can.h.

#define BT_E03_SAMPLING   19

Definition at line 72 of file bt_can.h.

#define BT_E04_SAMPLING   20

Definition at line 73 of file bt_can.h.

#define BT_E05_SAMPLING   21

Definition at line 74 of file bt_can.h.

#define BT_E06_SAMPLING   22

Definition at line 75 of file bt_can.h.

#define BT_E07_SAMPLING   23

Definition at line 76 of file bt_can.h.

#define BT_E08_SAMPLING   24

Definition at line 77 of file bt_can.h.

#define BT_E09_SAMPLING   25

Definition at line 78 of file bt_can.h.

#define BT_E10_SAMPLING   26

Definition at line 79 of file bt_can.h.

#define BT_E11_SAMPLING   27

Definition at line 80 of file bt_can.h.

#define BT_E12_SAMPLING   28

Definition at line 81 of file bt_can.h.

#define BT_E13_SAMPLING   29

Definition at line 82 of file bt_can.h.

#define BT_E14_SAMPLING   30

Definition at line 83 of file bt_can.h.

#define BT_E15_SAMPLING   31

Definition at line 84 of file bt_can.h.

#define BT_E16_SAMPLING   32

Definition at line 85 of file bt_can.h.

#define BT_E17_SAMPLING   33

Definition at line 86 of file bt_can.h.

#define BT_E18_SAMPLING   34

Definition at line 87 of file bt_can.h.

#define BT_E19_SAMPLING   35

Definition at line 88 of file bt_can.h.

Value:
{\
                            BT_E01_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E02_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E03_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E04_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E05_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E06_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E07_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E08_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E09_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E10_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E11_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E12_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E13_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E14_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E15_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E16_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E17_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_E18_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_E19_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_PDC_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, \
                            BT_TAC_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, BT_TDC_SAMPLING_COMMAND, BT_PAC_SAMPLING_COMMAND, '\0'}

Definition at line 20 of file bt_can.h.

Definition at line 18 of file bt_can.h.

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

Definition at line 16 of file bt_can.h.

#define BT_OK   0

Definition at line 96 of file bt_can.h.

#define BT_PAC_SAMPLING   0

Definition at line 65 of file bt_can.h.

#define BT_PDC_SAMPLING   1

Definition at line 66 of file bt_can.h.

#define BT_RTCAN_WRONG_ARGUMENT   -10

Definition at line 98 of file bt_can.h.

#define BT_SAMPLE_RATE_HZ_DEFAULT   3000

Definition at line 17 of file bt_can.h.

Definition at line 90 of file bt_can.h.

#define BT_SPI_BITRATE_KHZ_DEFAULT   3000

Definition at line 14 of file bt_can.h.

#define BT_TAC_SAMPLING   2

Definition at line 67 of file bt_can.h.

#define BT_TDC_SAMPLING   3

Definition at line 68 of file bt_can.h.

#define BT_WRONG_MAX_BIOTAC_NUMBER   -3

Definition at line 97 of file bt_can.h.

#define ELAPSED   1

Definition at line 110 of file bt_can.h.

#define INTEGER   1

Definition at line 103 of file bt_can.h.

#define MACHINE_TIMER

Definition at line 7 of file bt_can.h.

#define MAX_BIOTACS_FOR_JACO   3

Definition at line 9 of file bt_can.h.

#define PARITY_BAD   (BOOL)!PARITY_GOOD

Definition at line 59 of file bt_can.h.

#define PARITY_BAD   (BOOL)!PARITY_GOOD

Definition at line 59 of file bt_can.h.

#define PARITY_GOOD   (BOOL)0

Definition at line 58 of file bt_can.h.

#define PARITY_GOOD   (BOOL)0

Definition at line 58 of file bt_can.h.

#define PARITY_NOT_AVALIBLE   -1

Definition at line 60 of file bt_can.h.

#define STRING   2

Definition at line 104 of file bt_can.h.

#define ZERO   0

Definition at line 109 of file bt_can.h.


Typedef Documentation

typedef int BioTac

Definition at line 116 of file bt_can.h.

typedef int BOOL

Definition at line 33 of file bt_can.h.

typedef int8_t s08

Definition at line 47 of file bt_can.h.

typedef int16_t s16

Definition at line 48 of file bt_can.h.

typedef int32_t s32

Definition at line 49 of file bt_can.h.

typedef int64_t s64

Definition at line 50 of file bt_can.h.

typedef uint8_t u08

Definition at line 43 of file bt_can.h.

typedef uint16_t u16

Definition at line 44 of file bt_can.h.

typedef uint32_t u32

Definition at line 45 of file bt_can.h.

typedef uint64_t u64

Definition at line 46 of file bt_can.h.


Variable Documentation

const char* command_name[] [static]
Initial value:
 
{
  "PAC", "PDC", "TAC", "TDC", "   ", "   ", "   ", "   ", "   ", "   ", 
  "   ", "   ", "   ", "   ", "   ", "HAL", "REV", "E01", "E02", "E03", 
  "E04", "E05", "E06", "E07", "E08", "E09", "E10", "E11", "E12", "E13", 
  "E14", "E15", "E16", "E17", "E18", "E19", "   ", "   ", "   ", "   ", 
  "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", 
  "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", "   ", 
  "   ", "   ", "   ", "   "
}

Definition at line 174 of file bt_can.h.

const unsigned char parity_values[] [static]
Initial value:
 
{
  0x01, 0x02, 0x04, 0x07, 0x08, 0x0B, 0x0D, 0x0E, 
  0x10, 0x13, 0x15, 0x16, 0x19, 0x1A, 0x1C, 0x1F, 
  0x20, 0x23, 0x25, 0x26, 0x29, 0x2A, 0x2C, 0x2F, 
  0x31, 0x32, 0x34, 0x37, 0x38, 0x3B, 0x3D, 0x3E, 
  0x40, 0x43, 0x45, 0x46, 0x49, 0x4A, 0x4C, 0x4F, 
  0x51, 0x52, 0x54, 0x57, 0x58, 0x5B, 0x5D, 0x5E, 
  0x61, 0x62, 0x64, 0x67, 0x68, 0x6B, 0x6D, 0x6E, 
  0x70, 0x73, 0x75, 0x76, 0x79, 0x7A, 0x7C, 0x7F, 
  0x80, 0x83, 0x85, 0x86, 0x89, 0x8A, 0x8C, 0x8F, 
  0x91, 0x92, 0x94, 0x97, 0x98, 0x9B, 0x9D, 0x9E, 
  0xA1, 0xA2, 0xA4, 0xA7, 0xA8, 0xAB, 0xAD, 0xAE, 
  0xB0, 0xB3, 0xB5, 0xB6, 0xB9, 0xBA, 0xBC, 0xBF, 
  0xC1, 0xC2, 0xC4, 0xC7, 0xC8, 0xCB, 0xCD, 0xCE, 
  0xD0, 0xD3, 0xD5, 0xD6, 0xD9, 0xDA, 0xDC, 0xDF, 
  0xE0, 0xE3, 0xE5, 0xE6, 0xE9, 0xEA, 0xEC, 0xEF, 
  0xF1, 0xF2, 0xF4, 0xF7, 0xF8, 0xFB, 0xFD, 0xFE
}

Definition at line 154 of file bt_can.h.



numatac_can_driver
Author(s):
autogenerated on Thu Jun 6 2019 21:19:30