EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
si114x_functions.h File Reference

Detailed Description

Si114x function prototypes, structure and bit definitions.

Version
5.1.1

License

Copyright 2015 Silicon Labs, Inc. http://www.silabs.com

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition in file si114x_functions.h.

#include "si114x_types.h"

Go to the source code of this file.

Data Structures

struct  SI114X_CAL_S
 SI114X_CAL_S Data Structure. More...
 

Functions

uint8_t Compress (uint16_t input)
 Converts a 16-bit value to 8-bit value. More...
 
void delay_10ms (void)
 Implements 10ms delay. More...
 
void delay_1ms (void)
 Implements 1ms delay. More...
 
int16_t si114x_get_calibration (HANDLE si114x_handle, SI114X_CAL_S *si114x_cal, uint8_t security)
 Populates the SI114X_CAL_S structure. More...
 
int16_t si114x_set_ucoef (HANDLE si114x_handle, uint8_t *input_ucoef, SI114X_CAL_S *si114x_cal)
 Initializes the Si113x/46/47/48 UCOEF Registers. More...
 
int16_t Si114xAlsForce (HANDLE si114x_handle)
 Sends an ALSFORCE command to the Si113x/4x. More...
 
int16_t Si114xBlockRead (HANDLE si114x_handle, uint8_t address, uint8_t length, uint8_t *values)
 Reads block of Si114x registers. More...
 
int16_t Si114xBlockWrite (HANDLE si114x_handle, uint8_t address, uint8_t length, uint8_t *values)
 Writes block of Si114x registers. More...
 
int16_t Si114xNop (HANDLE si114x_handle)
 Sends a NOP command to the Si113x/4x. More...
 
int16_t Si114xParamRead (HANDLE si114x_handle, uint8_t address)
 Reads a Parameter from the Si113x/4x. More...
 
int16_t Si114xParamSet (HANDLE si114x_handle, uint8_t address, uint8_t value)
 Writes a byte to an Si113x/4x Parameter. More...
 
int16_t Si114xPauseAll (HANDLE si114x_handle)
 Pauses autonomous measurements. More...
 
int16_t Si114xPsAlsAuto (HANDLE si114x_handle)
 Sends a PSALSAUTO command to the Si113x/4x. More...
 
int16_t Si114xPsAlsForce (HANDLE si114x_handle)
 Sends a PSALSFORCE command to the Si113x/4x. More...
 
int16_t Si114xPsForce (HANDLE si114x_handle)
 Sends a PSFORCE command to the Si113x/4x. More...
 
int16_t Si114xReadFromRegister (HANDLE si114x_handle, uint8_t address)
 Reads from Si114x register. More...
 
int16_t Si114xReset (HANDLE si114x_handle)
 Resets the Si113x/4x, clears any interrupts and initializes the HW_KEY register. More...
 
int16_t Si114xWriteToRegister (HANDLE si114x_handle, uint8_t address, uint8_t value)
 Writes to Si114x Register. More...
 
uint16_t Uncompress (uint8_t input)
 Converts an 8-bit compressed value to 16-bit. More...