I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
S11059.c File Reference

S11059 Driver. More...

#include "S11059.h"
Include dependency graph for S11059.c:

Functions

FctERR S11059_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress)
 Initialization for S11059 peripheral.
 
FctERR S11059_Init_Single (void)
 Initialization for S11059 peripheral.
 
FctERR S11059_Write (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Write function for S11059.
 
FctERR S11059_Read (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Read function for S11059.
 
FctERR S11059_Write_Word (I2C_slave_t *const pSlave, const uint16_t *data, const uint16_t addr)
 I2C Word Write (big endian) function for S11059.
 
FctERR S11059_Read_Word (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr)
 I2C Word Read (big endian) function for S11059.
 

Detailed Description

S11059 Driver.

Author
SMFSW

S11059: I2C interface-compatible color sensor

Function Documentation

◆ S11059_Init()

FctERR S11059_Init ( const uint8_t idx,
I2C_HandleTypeDef *const hi2c,
const uint16_t devAddress )

Initialization for S11059 peripheral.

Parameters
[in]idx- S11059 index
[in]hi2c- pointer to S11059 I2C instance
[in]devAddress- S11059 device address
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ S11059_Init_Single()

FctERR S11059_Init_Single ( void )

Initialization for S11059 peripheral.

Warning
In case multiple devices (defined by I2C_S11059_NB > 1), you shall use S11059_Init instead
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Read()

FctERR S11059_Read ( I2C_slave_t *const pSlave,
uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Read function for S11059.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in,out]data- pointer to read to
[in]addr- Address to read from
[in]nb- Number of bytes to read
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ S11059_Read_Word()

FctERR S11059_Read_Word ( I2C_slave_t *const pSlave,
uint16_t * data,
const uint16_t addr )

I2C Word Read (big endian) function for S11059.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in,out]data- pointer to read to
[in]addr- Address to read from
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ S11059_Write()

FctERR S11059_Write ( I2C_slave_t *const pSlave,
const uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Write function for S11059.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in]data- pointer to write from
[in]addr- Address to write to
[in]nb- Number of bytes to write
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ S11059_Write_Word()

FctERR S11059_Write_Word ( I2C_slave_t *const pSlave,
const uint16_t * data,
const uint16_t addr )

I2C Word Write (big endian) function for S11059.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in]data- pointer to write from
[in]addr- Address to write to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: