/************************************************/ /* */ /* This is an example of use of the rock module */ /* */ /* Some parts are missing, so do not compile it!*/ /* */ /************************************************/ #include <Error.h> #include <rock.h> /* read the BOE bit */ int main() { ROCK_id rock_id; int err; int boe; /* open the rock */ err = rock_open(0x50010000,0x100000,0x09,0,&rock_id); if (err!=ROCK_ERROR_OK) { printf("Error opening ROCK!: %s",ErrorGetMessage()); return 1; } /* read the ROCK */ boe = rock_get_boe(rock_id); printf("boe: %i\n",boe); /* close the rock */ rock_close(rock_id); }