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

S11059 Driver extensions. More...

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

Functions

FctERR S11059_Set_ADC (S11059_t *const pCpnt, const S11059_adc_reset adc)
 ADC Operation / Reset.
 
FctERR S11059_Set_Standby (S11059_t *const pCpnt, const S11059_standby_fct standby)
 Set Standby / Operating mode.
 
FctERR S11059_Set_Gain (S11059_t *const pCpnt, const S11059_gain gain)
 Set ADC gain.
 
FctERR S11059_Set_Integration (S11059_t *const pCpnt, const S11059_integ mode, const S11059_prescaler prescaler)
 Set integration mode & prescaler.
 
FctERR S11059_Set_Integration_Multiplier (S11059_t *const pCpnt, const uint16_t mult)
 Set S11059 integration multiplier (used when integration mode set to Manual)
 
FctERR S11059_Get_Standby (S11059_t *const pCpnt, S11059_standby_fct *const standby)
 Get Standby function monitor.
 
FctERR S11059_Get_Channel (S11059_t *const pCpnt, uint16_t *const val, const S11059_chan chan)
 Get Specific channel conversion.
 

Detailed Description

S11059 Driver extensions.

Author
SMFSW

S11059: I2C interface-compatible color sensor

Function Documentation

◆ S11059_Get_Channel()

FctERR S11059_Get_Channel ( S11059_t *const pCpnt,
uint16_t *const val,
const S11059_chan chan )

Get Specific channel conversion.

Parameters
[in]pCpnt- Pointer to S11059 component
[in,out]val- pointer to conversions result
[in]chan- Channel to get
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Get_Standby()

FctERR S11059_Get_Standby ( S11059_t *const pCpnt,
S11059_standby_fct *const standby )

Get Standby function monitor.

Parameters
[in]pCpnt- Pointer to S11059 component
[in,out]standby- pointer to standby function result
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Set_ADC()

FctERR S11059_Set_ADC ( S11059_t *const pCpnt,
const S11059_adc_reset adc )

ADC Operation / Reset.

Parameters
[in]pCpnt- Pointer to S11059 component
[in]adc- ADC mode
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Set_Gain()

FctERR S11059_Set_Gain ( S11059_t *const pCpnt,
const S11059_gain gain )

Set ADC gain.

Parameters
[in]pCpnt- Pointer to S11059 component
[in]gain- Gain selection
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Set_Integration()

FctERR S11059_Set_Integration ( S11059_t *const pCpnt,
const S11059_integ mode,
const S11059_prescaler prescaler )

Set integration mode & prescaler.

Parameters
[in]pCpnt- Pointer to S11059 component
[in]mode- Fixed period / Manual integration
[in]prescaler- Integration time base (prescaler)
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Set_Integration_Multiplier()

FctERR S11059_Set_Integration_Multiplier ( S11059_t *const pCpnt,
const uint16_t mult )

Set S11059 integration multiplier (used when integration mode set to Manual)

Parameters
[in]pCpnt- Pointer to S11059 component
[in]mult- Integration time multiplier value
Returns
FctERR - error code
Here is the call graph for this function:

◆ S11059_Set_Standby()

FctERR S11059_Set_Standby ( S11059_t *const pCpnt,
const S11059_standby_fct standby )

Set Standby / Operating mode.

Parameters
[in]pCpnt- Pointer to S11059 component
[in]standby- standby mode
Returns
FctERR - error code
Here is the call graph for this function: