Si114x function prototypes, structure and bit definitions. More...
#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 | |
int16_t | Si114xWriteToRegister (HANDLE si114x_handle, uint8_t address, uint8_t value) |
Writes to Si114x Register. | |
int16_t | Si114xReadFromRegister (HANDLE si114x_handle, uint8_t address) |
Reads from Si114x register. | |
int16_t | Si114xBlockWrite (HANDLE si114x_handle, uint8_t address, uint8_t length, uint8_t *values) |
Writes block of Si114x registers. | |
int16_t | Si114xBlockRead (HANDLE si114x_handle, uint8_t address, uint8_t length, uint8_t *values) |
Reads block of Si114x registers. | |
void | delay_10ms (void) |
Implements 10ms delay. | |
void | delay_1ms (void) |
Implements 1ms delay. | |
int16_t | Si114xReset (HANDLE si114x_handle) |
Resets the Si113x/4x, clears any interrupts and initializes the HW_KEY register. | |
int16_t | Si114xPauseAll (HANDLE si114x_handle) |
Pauses autonomous measurements. | |
int16_t | Si114xNop (HANDLE si114x_handle) |
Sends a NOP command to the Si113x/4x. | |
int16_t | Si114xPsForce (HANDLE si114x_handle) |
Sends a PSFORCE command to the Si113x/4x. | |
int16_t | Si114xAlsForce (HANDLE si114x_handle) |
Sends an ALSFORCE command to the Si113x/4x. | |
int16_t | Si114xPsAlsForce (HANDLE si114x_handle) |
Sends a PSALSFORCE command to the Si113x/4x. | |
int16_t | Si114xPsAlsAuto (HANDLE si114x_handle) |
Sends a PSALSAUTO command to the Si113x/4x. | |
int16_t | Si114xParamSet (HANDLE si114x_handle, uint8_t address, uint8_t value) |
Writes a byte to an Si113x/4x Parameter. | |
int16_t | Si114xParamRead (HANDLE si114x_handle, uint8_t address) |
Reads a Parameter from the Si113x/4x. | |
uint8_t | Compress (uint16_t input) |
Converts a 16-bit value to 8-bit value. | |
uint16_t | Uncompress (uint8_t input) |
Converts an 8-bit compressed value to 16-bit. | |
int16_t | si114x_get_calibration (HANDLE si114x_handle, SI114X_CAL_S *si114x_cal, uint8_t security) |
Populates the SI114X_CAL_S structure. | |
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. |
Si114x function prototypes, structure and bit definitions.
(C) Copyright 2014 Silicon Labs, 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.