/* main.c */ /*! @file main.c @brief contains main function, should call other high level functions */ /* History: 06/13/2022: Julian Zelazny: created main.c, added output test */ /*============================================================================*/ #include #include #include "CAMAC.h" /*============================================================================*/ /*============================================================================*/ /*============================================================================*/ /*! @brief prints how to use this program, @brief please fill this method out with useful info. */ void printUsage(void){ } /*============================================================================*/ /*! @brief main function, should call other high level functions */ int main(char argc, char* argv[]){ bool result; uint8_t data; if(!camacInit()){ puts("camacInit() returned false"); exit(EXIT_FAILURE); } result = readCamacRegister(&data, READ_LOW ); if(result){ printf("readCamacRegister returned true with this data 0x%02x\n",data); } else puts("readCamacRegister returned false"); // writeCamacRegister(0xAA, WRITE_HIGH); return EXIT_SUCCESS; } /*============================================================================*/