3.14 Reading Board Type
Step-By-Step Instructions
...
ERRPARAMS errparams; // structure for returning error code and error string
BYTE Board_type;
...
// Reading Board Type
if( DSCSAM_BoardType(&Board_type) != DE_NONE )
{
DSCGetLastError ( &errparams );
printf ( "DSCSAM_BoardType error: %s %s\n", DSCGetErrorString ( errparams.ErrCode ), errparams.errstring );
return 0;
}
// Printing Board Type
if(Board_type == 0)
printf ( "Board Type : ZIGGY\n" );
else if(Board_type == 3)
printf ( "Board Type : STEVIE\n" );
else if(Board_type == 5)
printf ( "Board Type : ELTON\n" );
else if(Board_type == 7)
printf ( "Board Type : JETHRO\n" );
...Last updated
Was this helpful?