Sold slow control/

Dependents:   sscm

Fork of S_SCTRL_SMlib by wimbeaumont Project

S_SCTRL_SM1_hwfunct.h

Committer:
wbeaumont
Date:
2014-09-07
Revision:
2:475caee897ec
Parent:
1:af78e316f889
Child:
3:39671ee1347d
Child:
5:b527df9432c3

File content as of revision 2:475caee897ec:

#ifndef S_SCTRL_SM1_hwfunct_H
#define S_SCTRL_SM1_hwfunct_H

typedef unsigned int  u32;
typedef unsigned short int  u16;
typedef unsigned char u8;



typedef struct  {

DigitalInOut*  msio[2];
DigitalOut*  sclk[2];
DigitalOut*  direction[2];
DigitalOut*  stio_mo[2];
DigitalOut*   csb1[2];
DigitalOut*   csb2[2];



// SPI pins
DigitalOut*  mosi[2]; 
DigitalIn* miso[2]; 

DigitalOut*  t_cs[2];
DigitalOut*  tc_cs1[2];
DigitalOut*  tc_cs2[2];
DigitalOut*   dac_cs[2];
DigitalOut*   dac_rst[2];


//cal 
DigitalOut*   cal13[2]; // physical the same so will point to the same port
DigitalOut*   cal24[2]; // physical the same so will point to the same port
DigitalOut*   calint[2];

// not related to connector 1 /2 
DigitalOut*   calext; 
DigitalOut*   calgenext;

DigitalOut*  ledred;
DigitalOut*  ledgreen;

AnalogIn*  ain[2];

            
   
    
    } HWlines;

void assignports(HWlines  *hwlines );    
void setcalsource( int extcal, HWlines hwl);    
void setdefault(HWlines hwl ) ;
    
    
#endif