02.01.2015 Views

CooCox CoOS User's Guide

CooCox CoOS User's Guide

CooCox CoOS User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[IN] tmrReload<br />

The reloaded value of the timer to be reset to<br />

Returns:<br />

E_INVALID_ID, The timer ID passed is invalid.<br />

E_OK,<br />

Get the count value of the specified timer successfully.<br />

Example Usage:<br />

#include "CCRTOS.h"<br />

OS_TCID sftmr;<br />

void TaskN (void *pdata)<br />

{<br />

StatusType result;<br />

...<br />

result= CoSetTimerCnt (sftmr, 200, 200);<br />

if (result != E_OK)<br />

{<br />

if (result== E_INVALID_ID)<br />

{<br />

printf("The timer id passed is invalid, failed to stop. \n");<br />

}<br />

}<br />

...<br />

}<br />

Note:<br />

None<br />

68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!