EFR32 Blue Gecko 1 Software Documentation  efr32bg1-doc-5.1.2
si1147_i2c.c File Reference

Detailed Description

i2c driver for the Si1147

Version
5.1.1

License

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

This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file si1147_i2c.c.

#include "i2cspm.h"
#include "si114x_functions.h"
#include "rtcdriver.h"
#include "si1147_i2c.h"

Go to the source code of this file.

Functions

void delay_10ms ()
 Implements 10ms delay.
 
void delay_1ms ()
 Implements 1ms delay.
 
uint32_t Si1147_Read_Block_Register (I2C_TypeDef *i2c, uint8_t addr, uint8_t reg, uint8_t length, uint8_t *data)
 Reads a block of data from the Si1147 sensor. More...
 
uint32_t Si1147_Read_Register (I2C_TypeDef *i2c, uint8_t addr, uint8_t reg, uint8_t *data)
 Reads register from the Si1147 sensor. More...
 
uint32_t Si1147_Write_Block_Register (I2C_TypeDef *i2c, uint8_t addr, uint8_t reg, uint8_t length, uint8_t const *data)
 Writes a block of data to the Si1147 sensor. More...
 
uint32_t Si1147_Write_Register (I2C_TypeDef *i2c, uint8_t addr, uint8_t reg, uint8_t data)
 Writes register in the Si1147 sensor. 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 Si114xReadFromRegister (HANDLE si114x_handle, uint8_t address)
 Reads from Si114x register. More...
 
int16_t Si114xWriteToRegister (HANDLE si114x_handle, uint8_t address, uint8_t data)
 Writes to Si114x Register. More...