SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
This function clears the enable pin of the device, and closes the communication interface. This function can receive a time-out (in milliseconds) as a parameter. This parameter defines the amount of time the device allows for finishing any packet ongoing transmission, reception, or disconnection gracefully before shutting down. This time-out value determines the maximum time the device waits. The function returns when all the activities are performed even before the time-out expires.
Example:
_i16 Status, Role;
Role = sl_Start(NULL, NULL, NULL);
if (ROLE_STA == Role)
{
/* Main application */
}
Status = sl_Stop(100); /* 100 ms Timeout */if( Status )
{
/* error */
}