Version of easy-connect with the u-blox cellular platforms C027 and C030 added.

Dependents:   HelloMQTT

Embed: (wiki syntax)

« Back to documentation index

SPIRIT_Timer.c File Reference

SPIRIT_Timer.c File Reference

Configuration and management of SPIRIT timers. More...

Go to the source code of this file.

Functions

void SpiritTimerLdcrMode (SpiritFunctionalState xNewState)
 Enables or Disables the LDCR mode.
void SpiritTimerLdcrAutoReload (SpiritFunctionalState xNewState)
 Enables or Disables the LDCR timer reloading with the value stored in the LDCR_RELOAD registers.
SpiritFunctionalState SpiritTimerLdcrGetAutoReload (void)
 Returns the LDCR timer reload bit.
void SpiritTimerSetRxTimeout (uint8_t cCounter, uint8_t cPrescaler)
 Sets the RX timeout timer initialization registers with the values of COUNTER and PRESCALER according to the formula: Trx=PRESCALER*COUNTER*Tck.
void SpiritTimerSetRxTimeoutMs (float fDesiredMsec)
 Sets the RX timeout timer counter and prescaler from the desired value in ms.
void SpiritTimerSetRxTimeoutCounter (uint8_t cCounter)
 Sets the RX timeout timer counter.
void SpiritTimerSetRxTimeoutPrescaler (uint8_t cPrescaler)
 Sets the RX timeout timer prescaler.
void SpiritTimerGetRxTimeout (float *pfTimeoutMsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
 Returns the RX timeout timer.
void SpiritTimerSetWakeUpTimer (uint8_t cCounter, uint8_t cPrescaler)
 Sets the LDCR wake up timer initialization registers with the values of COUNTER and PRESCALER according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
void SpiritTimerSetWakeUpTimerMs (float fDesiredMsec)
 Sets the LDCR wake up timer counter and prescaler from the desired value in ms, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
void SpiritTimerSetWakeUpTimerCounter (uint8_t cCounter)
 Sets the LDCR wake up timer counter.
void SpiritTimerSetWakeUpTimerPrescaler (uint8_t cPrescaler)
 Sets the LDCR wake up timer prescaler.
void SpiritTimerGetWakeUpTimer (float *pfWakeUpMsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
 Returns the LDCR wake up timer, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
void SpiritTimerSetWakeUpTimerReload (uint8_t cCounter, uint8_t cPrescaler)
 Sets the LDCR wake up timer reloading registers with the values of COUNTER and PRESCALER according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
void SpiritTimerSetWakeUpTimerReloadMs (float fDesiredMsec)
 Sets the LDCR wake up reload timer counter and prescaler from the desired value in ms, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
void SpiritTimerSetWakeUpTimerReloadCounter (uint8_t cCounter)
 Sets the LDCR wake up timer reload counter.
void SpiritTimerSetWakeUpTimerReloadPrescaler (uint8_t cPrescaler)
 Sets the LDCR wake up timer reload prescaler.
void SpiritTimerGetWakeUpTimerReload (float *pfWakeUpReloadMsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
 Returns the LDCR wake up reload timer, according to the formula: Twu=(PRESCALER +1)*(COUNTER+1)*Tck, where Tck = 28.818 us.
uint16_t SpiritTimerGetRcoFrequency (void)
 Computes and returns the RCO frequency.
void SpiritTimerComputeWakeUpValues (float fDesiredMsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
 Computes the values of the wakeup timer counter and prescaler from the user time expressed in millisecond.
void SpiritTimerComputeRxTimeoutValues (float fDesiredMsec, uint8_t *pcCounter, uint8_t *pcPrescaler)
 Computes the values of the rx_timeout timer counter and prescaler from the user time expressed in millisecond.
void SpiritTimerSetRxTimeoutStopCondition (RxTimeoutStopCondition xStopCondition)
 Sets the RX timeout stop conditions.
void SpiritTimerReloadStrobe (void)
 Sends the LDC_RELOAD command to SPIRIT.

Detailed Description

Configuration and management of SPIRIT timers.

Author:
VMA division - AMS
Version:
3.2.2
Date:
08-July-2015
Attention:

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file SPIRIT_Timer.c.