63 extern void TC_Configure(
Tc *pTc, uint32_t dwChannel, uint32_t dwMode ) ;
65 extern void TC_Start(
Tc *pTc, uint32_t dwChannel ) ;
67 extern void TC_Stop(
Tc *pTc, uint32_t dwChannel ) ;
69 extern uint32_t
TC_FindMckDivisor( uint32_t dwFreq, uint32_t dwMCk, uint32_t *dwDiv, uint32_t *dwTcClks, uint32_t dwBoardMCK ) ;
71 extern uint32_t
TC_ReadCV(
Tc *p_tc, uint32_t ul_channel);
75 extern void TC_SetRA(
Tc *tc, uint32_t chan, uint32_t v) ;
77 extern void TC_SetRB(
Tc *tc, uint32_t chan, uint32_t v) ;
79 extern void TC_SetRC(
Tc *tc, uint32_t chan, uint32_t v) ;
uint32_t TC_FindMckDivisor(uint32_t dwFreq, uint32_t dwMCk, uint32_t *dwDiv, uint32_t *dwTcClks, uint32_t dwBoardMCK)
Find best MCK divisor.
Definition: tc.c:134
void TC_Stop(Tc *pTc, uint32_t dwChannel)
Stop TC Channel.
Definition: tc.c:106
uint32_t TC_ReadCV(Tc *p_tc, uint32_t ul_channel)
Read Timer Counter Counter Value on the selected TC & channel.
Definition: tc.c:184
void TC_Start(Tc *pTc, uint32_t dwChannel)
Reset and Start the TC Channel.
Definition: tc.c:88
void TC_Configure(Tc *pTc, uint32_t dwChannel, uint32_t dwMode)
Configures a Timer Counter Channel.
Definition: tc.c:60
void TC_SetRB(Tc *tc, uint32_t chan, uint32_t v)
Set RB on the selected channel.
Definition: tc.c:222
void TC_SetRA(Tc *tc, uint32_t chan, uint32_t v)
Set RA on the selected channel.
Definition: tc.c:211
Definition: component_tc.h:58
void TC_SetRC(Tc *tc, uint32_t chan, uint32_t v)
Set RC on the selected channel.
Definition: tc.c:233
uint32_t TC_GetStatus(Tc *p_tc, uint32_t ul_channel)
Get current status on the selected channel.
Definition: tc.c:196