ROOTANA
Macros | Functions | Variables
Alpha16.cxx File Reference
#include "Alpha16.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
Include dependency graph for Alpha16.cxx:

Go to the source code of this file.

Macros

#define MEMZERO(array)   memset((array),0,sizeof(array))
 

Functions

static uint8_t getUint8 (const void *ptr, int offset)
 
static uint16_t getUint16 (const void *ptr, int offset)
 
static uint32_t getUint32 (const void *ptr, int offset)
 
static unsigned short crc16 (const unsigned char *data_p, unsigned char length)
 

Variables

static const int chanmap_top [] = { 7, 15, 6, 14, 5, 13, 4, 12, 3, 11, 2, 10, 1, 9, 0, 8 }
 
static const int chanmap_bot [] = { 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7 }
 
const double TSCLK = 0.1
 

Macro Definition Documentation

◆ MEMZERO

#define MEMZERO (   array)    memset((array),0,sizeof(array))

Definition at line 15 of file Alpha16.cxx.

Function Documentation

◆ crc16()

static unsigned short crc16 ( const unsigned char *  data_p,
unsigned char  length 
)
static

Definition at line 35 of file Alpha16.cxx.

Here is the caller graph for this function:

◆ getUint16()

static uint16_t getUint16 ( const void *  ptr,
int  offset 
)
static

Definition at line 22 of file Alpha16.cxx.

Here is the caller graph for this function:

◆ getUint32()

static uint32_t getUint32 ( const void *  ptr,
int  offset 
)
static

Definition at line 28 of file Alpha16.cxx.

Here is the caller graph for this function:

◆ getUint8()

static uint8_t getUint8 ( const void *  ptr,
int  offset 
)
static

Definition at line 17 of file Alpha16.cxx.

Here is the caller graph for this function:

Variable Documentation

◆ chanmap_bot

const int chanmap_bot[] = { 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7 }
static

Definition at line 306 of file Alpha16.cxx.

◆ chanmap_top

const int chanmap_top[] = { 7, 15, 6, 14, 5, 13, 4, 12, 3, 11, 2, 10, 1, 9, 0, 8 }
static

Definition at line 305 of file Alpha16.cxx.

◆ TSCLK

const double TSCLK = 0.1

Definition at line 376 of file Alpha16.cxx.