Added support for WNC M14A2A Cellular LTE Data Module.

Dependencies:   WNC14A2AInterface

Dependents:   http-example-wnc http-example-wnc-modified

Embed: (wiki syntax)

« Back to documentation index

SPIRIT_Gpio.c File Reference

SPIRIT_Gpio.c File Reference

This file provides all the low level API to manage SPIRIT GPIO. More...

Go to the source code of this file.

Functions

void SpiritGpioInit (SGpioInit *pxGpioInitStruct)
 Initializes the SPIRIT GPIOx according to the specified parameters in the pxGpioInitStruct.
void SpiritGpioTemperatureSensor (SpiritFunctionalState xNewState)
 Enables or Disables the output of temperature sensor on SPIRIT GPIO_0.
void SpiritGpioSetLevel (SpiritGpioPin xGpioX, OutputLevel xLevel)
 Forces SPIRIT GPIO_x configured as digital output, to VDD or GND.
OutputLevel SpiritGpioGetLevel (SpiritGpioPin xGpioX)
 Returns output value (VDD or GND) of SPIRIT GPIO_x, when it is configured as digital output.
void SpiritGpioClockOutput (SpiritFunctionalState xNewState)
 Enables or Disables the MCU clock output.
void SpiritGpioClockOutputInit (ClockOutputInit *pxClockOutputInitStruct)
 Initializes the SPIRIT Clock Output according to the specified parameters in the xClockOutputInitStruct.
void SpiritGpioSetXOPrescaler (ClockOutputXOPrescaler xXOPrescaler)
 Sets the XO ratio as clock output.
ClockOutputXOPrescaler SpiritGpioGetXOPrescaler (void)
 Returns the settled XO prescaler as clock output.
void SpiritGpioSetRCOPrescaler (ClockOutputRCOPrescaler xRCOPrescaler)
 Sets the RCO ratio as clock output.
ClockOutputRCOPrescaler SpiritGpioGetRCOPrescaler (void)
 Returns the settled RCO prescaler as clock output.
void SpiritGpioSetExtraClockCycles (ExtraClockCycles xExtraCycles)
 Sets the RCO ratio as clock output.
ExtraClockCycles SpiritGpioGetExtraClockCycles (void)
 Returns the settled RCO prescaler as clock output.

Detailed Description

This file provides all the low level API to manage SPIRIT GPIO.

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_Gpio.c.