Description

Register interface and implementation details.

Modules

Commands
Si1133 commands.
 
Parameters
Si1133 parameters.
 
Registers
Si1133 register definitions.
 
Responses
Si1133 responses.
 

Functions

sl_status_t sl_si1133_read_register (sl_i2cspm_t *i2cspm, uint8_t reg, uint8_t *data)
 Read register from the Si1133 sensor.
 
sl_status_t sl_si1133_write_register (sl_i2cspm_t *i2cspm, uint8_t reg, uint8_t data)
 Write register in the Si1133 sensor.
 
sl_status_t sl_si1133_read_register_block (sl_i2cspm_t *i2cspm, uint8_t reg, uint8_t length, uint8_t *data)
 Read a block of data from the Si1133 sensor.
 
sl_status_t sl_si1133_write_register_block (sl_i2cspm_t *i2cspm, uint8_t reg, uint8_t length, const uint8_t *data)
 Write a block of data to the Si1133 sensor.
 

Function Documentation

◆ sl_si1133_read_register()

sl_status_t sl_si1133_read_register ( sl_i2cspm_t *  i2cspm,
uint8_t  reg,
uint8_t *  data 
)

Read register from the Si1133 sensor.

Parameters
[in]i2cspmThe I2C peripheral to use.
[in]regThe register address to read from in the sensor.
[out]dataThe data read from the sensor
Return values
SL_STATUS_OKSuccess
SL_STATUS_TRANSMITI2C transmit failure

◆ sl_si1133_write_register()

sl_status_t sl_si1133_write_register ( sl_i2cspm_t *  i2cspm,
uint8_t  reg,
uint8_t  data 
)

Write register in the Si1133 sensor.

Parameters
[in]i2cspmThe I2C peripheral to use.
[in]regThe register address to write to in the sensor
[in]dataThe data to write to the sensor
Return values
SL_STATUS_OKSuccess
SL_STATUS_TRANSMITI2C transmit failure

◆ sl_si1133_read_register_block()

sl_status_t sl_si1133_read_register_block ( sl_i2cspm_t *  i2cspm,
uint8_t  reg,
uint8_t  length,
uint8_t *  data 
)

Read a block of data from the Si1133 sensor.

Parameters
[in]i2cspmThe I2C peripheral to use.
[in]regThe first register to begin reading from
[in]lengthThe number of bytes to write to the sensor
[out]dataThe data read from the sensor
Return values
SL_STATUS_OKSuccess
SL_STATUS_TRANSMITI2C transmit failure

◆ sl_si1133_write_register_block()

sl_status_t sl_si1133_write_register_block ( sl_i2cspm_t *  i2cspm,
uint8_t  reg,
uint8_t  length,
const uint8_t *  data 
)

Write a block of data to the Si1133 sensor.

Parameters
[in]i2cspmThe I2C peripheral to use.
[in]regThe first register to begin writing to
[in]lengthThe number of bytes to write to the sensor
[in]dataThe data to write to the sensor
Return values
SL_STATUS_OKSuccess
SL_STATUS_TRANSMITI2C transmit failure