|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
S11059 Driver extensions. More...


Data Structures | |
| union | uS11059_REG_MAP |
| Union of S11059 registry map. More... | |
Enumerations | |
| enum | S11059_chan { S11059__CHAN_RED = 0U , S11059__CHAN_GREEN , S11059__CHAN_BLUE , S11059__CHAN_IR } |
| Light type channels of S11059. More... | |
Functions | |
| FctERR | S11059_Write_Ctl (I2C_slave_t *const pSlave, const uint8_t ctl) |
| Write S11059 Control register. | |
| 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. | |
| FctERR | S11059_Get_Red (S11059_t *const pCpnt, uint16_t *const r) |
| Get Red channel conversion. | |
| FctERR | S11059_Get_Green (S11059_t *const pCpnt, uint16_t *const g) |
| Get Green channel conversion. | |
| FctERR | S11059_Get_Blue (S11059_t *const pCpnt, uint16_t *const b) |
| Get Blue channel conversion. | |
| FctERR | S11059_Get_IR (S11059_t *const pCpnt, uint16_t *const ir) |
| Get Infra-red channel conversion. | |
S11059 Driver extensions.
S11059: I2C interface-compatible color sensor
| enum S11059_chan |
|
inline |
Get Blue channel conversion.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | b | - pointer to Blue conversion result |

| FctERR S11059_Get_Channel | ( | S11059_t *const | pCpnt, |
| uint16_t *const | val, | ||
| const S11059_chan | chan ) |
Get Specific channel conversion.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | val | - pointer to conversions result |
| [in] | chan | - Channel to get |

|
inline |
Get Green channel conversion.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | g | - pointer to Green conversion result |

|
inline |
Get Infra-red channel conversion.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | ir | - pointer to Infra-red conversion result |

|
inline |
Get Red channel conversion.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | r | - pointer to Red conversion result |

| FctERR S11059_Get_Standby | ( | S11059_t *const | pCpnt, |
| S11059_standby_fct *const | standby ) |
Get Standby function monitor.
| [in] | pCpnt | - Pointer to S11059 component |
| [in,out] | standby | - pointer to standby function result |

| FctERR S11059_Set_ADC | ( | S11059_t *const | pCpnt, |
| const S11059_adc_reset | adc ) |
ADC Operation / Reset.
| [in] | pCpnt | - Pointer to S11059 component |
| [in] | adc | - ADC mode |

| FctERR S11059_Set_Gain | ( | S11059_t *const | pCpnt, |
| const S11059_gain | gain ) |
Set ADC gain.
| [in] | pCpnt | - Pointer to S11059 component |
| [in] | gain | - Gain selection |

| FctERR S11059_Set_Integration | ( | S11059_t *const | pCpnt, |
| const S11059_integ | mode, | ||
| const S11059_prescaler | prescaler ) |
Set integration mode & prescaler.
| [in] | pCpnt | - Pointer to S11059 component |
| [in] | mode | - Fixed period / Manual integration |
| [in] | prescaler | - Integration time base (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)
| [in] | pCpnt | - Pointer to S11059 component |
| [in] | mult | - Integration time multiplier value |

| FctERR S11059_Set_Standby | ( | S11059_t *const | pCpnt, |
| const S11059_standby_fct | standby ) |
Set Standby / Operating mode.
| [in] | pCpnt | - Pointer to S11059 component |
| [in] | standby | - standby mode |

|
inline |
Write S11059 Control register.
| [in] | pSlave | - Pointer to I2C slave instance |
| [in] | ctl | - Control value |

