Si1133 Details#
Register interface and implementation details.
Modules#
Functions#
Read register from the Si1133 sensor.
Write register in the Si1133 sensor.
Read a block of data from the Si1133 sensor.
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_i2cspm_t * | [in] | i2cspm | The I2C peripheral to use. |
uint8_t | [in] | reg | The register address to read from in the sensor. |
uint8_t * | [out] | data | The data read from the sensor |
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_i2cspm_t * | [in] | i2cspm | The I2C peripheral to use. |
uint8_t | [in] | reg | The register address to write to in the sensor |
uint8_t | [in] | data | The data to write to the sensor |
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_i2cspm_t * | [in] | i2cspm | The I2C peripheral to use. |
uint8_t | [in] | reg | The first register to begin reading from |
uint8_t | [in] | length | The number of bytes to write to the sensor |
uint8_t * | [out] | data | The data read from the sensor |
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_i2cspm_t * | [in] | i2cspm | The I2C peripheral to use. |
uint8_t | [in] | reg | The first register to begin writing to |
uint8_t | [in] | length | The number of bytes to write to the sensor |
const uint8_t * | [in] | data | The data to write to the sensor |