Skip to content
Snippets Groups Projects
main_pcie40_b2slc.c 256 B
Newer Older
#include "pcie40_ecs.h"
#include "pcie40_b2slc.h"
#include <stdio.h>
Patrick Robbe's avatar
Patrick Robbe committed

int main(int argc, char *argv[]) { 
Patrick Robbe's avatar
Patrick Robbe committed
  ecs_open( 0 , 2 ) ;

Patrick Robbe's avatar
Patrick Robbe committed
  int result = pcie40_readfee32( 0 , 0x12 ) ;
Patrick Robbe's avatar
Patrick Robbe committed
  
  ecs_close( 0 , 2 ) ;

  printf( "Value = %X\n" , result ) ;
Patrick Robbe's avatar
Patrick Robbe committed

  return 0 ;
}