Appiko
Data Structures | Enumerations | Variables
S2LP_Types.h File Reference

Header file for S2-LP types. More...

#include <stdint.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  S2LPStatus
 S2LP Status. This definition represents the single field of the S2LP status returned on each SPI transaction, equal also to the MC_STATE registers. This field-oriented structure allows user to address in simple way the single field of the S2LP status. The user shall define a variable of S2LPStatus type to access on S2LP status fields. More...
 

Enumerations

enum  SFunctionalState
 S2LP Functional state. Used to enable or disable a specific option.
 
enum  SFlagStatus
 S2LP Flag status. Used to control the state of a flag.
 
enum  SBool
 boolean type enumeration.
 
enum  S2LPState {
  MC_STATE_READY =0x00, MC_STATE_SLEEP_NOFIFO =0x01, MC_STATE_STANDBY =0x02, MC_STATE_SLEEP =0x03,
  MC_STATE_LOCKON =0x0C, MC_STATE_RX =0x30, MC_STATE_LOCK_ST =0x14, MC_STATE_TX =0x5C,
  MC_STATE_SYNTH_SETUP =0x50
}
 S2LP States enumeration. More...
 

Variables

volatile S2LPStatus g_xStatus
 S2LP Status global variable. This global variable of S2LPStatus type is updated on every SPI transaction to maintain memory of S2LP Status.
 

Detailed Description

Author
LowPower RF BU - AMG
Version
1.3.0
Date
April 12, 2017

This module provide some types definitions which will be used in all the modules of this library. Here is defined also the global variable g_xStatus which contains the status of S2-LP and is updated every time an SPI transaction occurs.

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

THIS SOURCE CODE IS PROTECTED BY A LICENSE. FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.

© COPYRIGHT 2016 STMicroelectronics

Definition in file S2LP_Types.h.