45 void S2LPTimerSetRxTimerMs(
float fDesiredMsec)
50 void S2LPTimerGetRxTimer(
float* pfTimeoutMsec, uint8_t* pcCounter , uint8_t* pcPrescaler)
56 (*pfTimeoutMsec)=((float)timeoutUsec)/1000;
59 void S2LPTimerSetWakeUpTimerMs(
float fDesiredMsec)
64 void S2LPTimerSetWakeUpTimerReloadMs(
float fDesiredMsec)
69 void S2LPTimerGetWakeUpTimer(
float* pfWakeUpMsec, uint8_t* pcCounter , uint8_t* pcPrescaler, uint8_t* pcMulti)
75 (*pfWakeUpMsec)=((float)timeoutUsec)/1000;
78 void S2LPTimerGetWakeUpTimerReload(
float* pfWakeUpReloadMsec, uint8_t* pcCounter, uint8_t* pcPrescaler, uint8_t* pcMulti)
84 (*pfWakeUpReloadMsec)=((float)timeoutUsec)/1000;
void S2LPTimerGetWakeUpTimerReloadUs(uint32_t *plWakeUpReloadUsec, uint8_t *pcCounter, uint8_t *pcPrescaler, uint8_t *pcMulti)
Return the LDCR wake up reload timer, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck,...
Configuration and management of S2-LP Timers using floating point.
Configuration and management of S2-LP Timers.
void S2LPTimerSetWakeUpTimerReloadUs(uint32_t lDesiredUsec)
Set the LDCR wake up reload timer counter and prescaler from the desired value in ms,...
This file contains all the registers address and masks.
void S2LPTimerGetRxTimerUs(uint32_t *plTimeoutUsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
Return the RX timeout timer.
void S2LPTimerGetWakeUpTimerUs(uint32_t *plWakeUpUsec, uint8_t *pcCounter, uint8_t *pcPrescaler, uint8_t *pcMulti)
Return the LDCR wake up timer, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck,...
Header file for low level S2LP SPI driver.
void S2LPTimerSetWakeUpTimerUs(uint32_t lDesiredUsec)
Set the LDCR wake up timer counter and prescaler from the desired value in ms, according to the formu...
void S2LPTimerSetRxTimerUs(uint32_t lDesiredUsec)
Set the RX timeout timer counter and prescaler from the desired value in ms. it is possible to fix th...