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] 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
Return values
SL_STATUS_OK Success
SL_STATUS_TRANSMIT I2C 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] 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
Return values
SL_STATUS_OK Success
SL_STATUS_TRANSMIT I2C 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] 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
Return values
SL_STATUS_OK Success
SL_STATUS_TRANSMIT I2C 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] 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
Return values
SL_STATUS_OK Success
SL_STATUS_TRANSMIT I2C transmit failure