3.6 Fan Control

Driver supports control of the Fan specific to Jetson carrier.‌

The SAMD51 function for controlling Fan is DSCSAM_FANControl.‌

Step-By-Step Instructions

The user should call the function DSCSAM_FANControl() passing argument as 1 to turn ON and, 0 to turn OFF Fan.

... 

ERRPARAMS errparams;  // structure for returning error code and error string
BYTE value;

...

// To turn ON Fan

value = 1;
 
if(DSCSAM_FANControl(value) != DE_NONE)
{
    DSCGetLastError ( &errparams );
    printf ( "DSCSAM_FANControl error: %s %s\n", DSCGetErrorString ( errparams.ErrCode ), errparams.errstring );
    return 0;
}

//To turn OFF Fan

value = 0;

if(DSCSAM_FANControl(value) != DE_NONE)
{
    DSCGetLastError ( &errparams );
    printf ( "DSCSAM_FANControl error: %s %s\n", DSCGetErrorString ( errparams.ErrCode ), errparams.errstring );
    return 0;
}

...

Last updated