Si1133 Details#

Register interface and implementation details.

Modules#

Commands

Parameters

Registers

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]i2cspm

The I2C peripheral to use.

[in]reg

The register address to read from in the sensor.

[out]data

The data read from the sensor


Definition at line 283 of file hardware/driver/si1133/inc/sl_si1133.h

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]i2cspm

The I2C peripheral to use.

[in]reg

The register address to write to in the sensor

[in]data

The data to write to the sensor


Definition at line 301 of file hardware/driver/si1133/inc/sl_si1133.h

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]i2cspm

The I2C peripheral to use.

[in]reg

The first register to begin reading from

[in]length

The number of bytes to write to the sensor

[out]data

The data read from the sensor


Definition at line 322 of file hardware/driver/si1133/inc/sl_si1133.h

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]i2cspm

The I2C peripheral to use.

[in]reg

The first register to begin writing to

[in]length

The number of bytes to write to the sensor

[in]data

The data to write to the sensor


Definition at line 343 of file hardware/driver/si1133/inc/sl_si1133.h