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


Data Structures | |
| union | uTCS3472_REG_MAP |
| Union of TCS3472 registry map. More... | |
Enumerations | |
| enum | TCS3472_chan { TCS3472__CHAN_CLEAR = 0U , TCS3472__CHAN_RED , TCS3472__CHAN_GREEN , TCS3472__CHAN_BLUE } |
| Light type channels of TCS3472. More... | |
Functions | |
| FctERR | TCS3472_Write_En (TCS3472_t *const pCpnt, const uint8_t en) |
| Write TCS3472 Enable register. | |
| FctERR | TCS3472_Write_Cfg (TCS3472_t *const pCpnt, const uint8_t cfg) |
| Write TCS3472 Config register. | |
| FctERR | TCS3472_Write_Ctl (TCS3472_t *const pCpnt, const uint8_t ctl) |
| Write TCS3472 Control register. | |
| FctERR | TCS3472_Set_PON (TCS3472_t *const pCpnt, const bool en) |
| Oscillator Enable / Disable. | |
| FctERR | TCS3472_Set_AEN (TCS3472_t *const pCpnt, const bool en) |
| Clear module Enable / Disable. | |
| FctERR | TCS3472_Set_AIEN (TCS3472_t *const pCpnt, const bool en) |
| Clear interrupt module Enable / Disable. | |
| FctERR | TCS3472_Set_WEN (TCS3472_t *const pCpnt, const bool en) |
| WAIT module Enable / Disable. | |
| FctERR | TCS3472_Set_Gain (TCS3472_t *const pCpnt, const TCS3472_gain gain) |
| Gain configuration. | |
| FctERR | TCS3472_Set_Pesistence (TCS3472_t *const pCpnt, const TCS3472_it_persist persist) |
| ALS Persistence configuration. | |
| FctERR | TCS3472_Set_Integration_Time (TCS3472_t *const pCpnt, const uint16_t integ) |
| Integration time configuration. | |
| FctERR | TCS3472_Set_Wait_Time (TCS3472_t *const pCpnt, const uint16_t wait) |
| Wait time configuration. | |
| FctERR | TCS3472_Set_AILT (TCS3472_t *const pCpnt, const uint16_t thr) |
| ALS interrupt low threshold configuration. | |
| FctERR | TCS3472_Set_AIHT (TCS3472_t *const pCpnt, const uint16_t thr) |
| ALS interrupt high threshold configuration. | |
| FctERR | TCS3472_Set_AIT (TCS3472_t *const pCpnt, const uint16_t lthr, const uint16_t hthr) |
| ALS interrupt thresholds configuration. | |
| FctERR | TCS3472_SF_Clear_IT (TCS3472_t *const pCpnt) |
| Clear pending interruption. | |
| FctERR | TCS3472_Get_ChipID (TCS3472_t *const pCpnt, uint8_t *const id) |
| Get TCS3472 chip ID. | |
| FctERR | TCS3472_Get_Channels (TCS3472_t *const pCpnt, uint16_t buf[]) |
| Get All channels conversions. | |
| FctERR | TCS3472_Get_Channel (TCS3472_t *const pCpnt, uint16_t *const val, const TCS3472_chan chan) |
| Get Specific channel conversion. | |
| FctERR | TCS3472_Get_Clear (TCS3472_t *const pCpnt, uint16_t *const clr) |
| Get Clear channel conversion. | |
| FctERR | TCS3472_Get_Red (TCS3472_t *const pCpnt, uint16_t *const r) |
| Get Red channel conversion. | |
| FctERR | TCS3472_Get_Green (TCS3472_t *const pCpnt, uint16_t *const g) |
| Get Green channel conversion. | |
| FctERR | TCS3472_Get_Blue (TCS3472_t *const pCpnt, uint16_t *const b) |
| Get Blue channel conversion. | |
| void | TCS3472_INT_GPIO_Init (TCS3472_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Interrupt GPIO pin init for TCS3472. | |
| bool | TCS3472_INT_GPIO_Get (const TCS3472_t *const pCpnt) |
| Interrupt GPIO pin getter for TCS3472. | |
TCS3472 Driver extensions.
TCS3472: Color light-to-digital converter with IR filter
| enum TCS3472_chan |
|
inline |
Get Blue channel conversion.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in,out] | b | - pointer to Blue conversion result |

| FctERR TCS3472_Get_Channel | ( | TCS3472_t *const | pCpnt, |
| uint16_t *const | val, | ||
| const TCS3472_chan | chan ) |
Get Specific channel conversion.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in,out] | val | - pointer to conversions result |
| [in] | chan | - Channel to get |

| FctERR TCS3472_Get_Channels | ( | TCS3472_t *const | pCpnt, |
| uint16_t | buf[] ) |
Get All channels conversions.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in,out] | buf | - pointer to conversions tab result |

|
inline |
Get TCS3472 chip ID.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in,out] | id | - pointer to chip ID result |


|
inline |
Get Clear channel conversion.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in,out] | clr | - pointer to Clear conversion result |

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

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

| bool TCS3472_INT_GPIO_Get | ( | const TCS3472_t *const | pCpnt | ) |
Interrupt GPIO pin getter for TCS3472.
| [in] | pCpnt | - Pointer to TCS3472 component |


| void TCS3472_INT_GPIO_Init | ( | TCS3472_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Interrupt GPIO pin init for TCS3472.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | GPIOx | - INT port |
| [in] | GPIO_Pin | - INT pin |
| [in] | GPIO_Active | INT pin active state |

| FctERR TCS3472_Set_AEN | ( | TCS3472_t *const | pCpnt, |
| const bool | en ) |
Clear module Enable / Disable.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | en | - 0 Disable, 1 Enable |

| FctERR TCS3472_Set_AIEN | ( | TCS3472_t *const | pCpnt, |
| const bool | en ) |
Clear interrupt module Enable / Disable.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | en | - 0 Disable, 1 Enable |

|
inline |
ALS interrupt high threshold configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | thr | - High threshold value |

|
inline |
ALS interrupt low threshold configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | thr | - Low threshold value |

|
inline |
ALS interrupt thresholds configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | lthr | - Low threshold value |
| [in] | hthr | - High threshold value |


| FctERR TCS3472_Set_Gain | ( | TCS3472_t *const | pCpnt, |
| const TCS3472_gain | gain ) |
Gain configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | gain | - Gain value |


| FctERR TCS3472_Set_Integration_Time | ( | TCS3472_t *const | pCpnt, |
| const uint16_t | integ ) |
Integration time configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | integ | - Integration time value (from 3ms to 614ms) |


|
inline |
ALS Persistence configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | persist | - Persistence value |

| FctERR TCS3472_Set_PON | ( | TCS3472_t *const | pCpnt, |
| const bool | en ) |
Oscillator Enable / Disable.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | en | - 0 Disable, 1 Enable |

| FctERR TCS3472_Set_Wait_Time | ( | TCS3472_t *const | pCpnt, |
| const uint16_t | wait ) |
Wait time configuration.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | wait | - Wait time value (from 3m to 7400ms) |


| FctERR TCS3472_Set_WEN | ( | TCS3472_t *const | pCpnt, |
| const bool | en ) |
WAIT module Enable / Disable.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | en | - 0 Disable, 1 Enable |

|
inline |
Clear pending interruption.
| [in] | pCpnt | - Pointer to TCS3472 component |


|
inline |
Write TCS3472 Config register.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | cfg | - Configuration register value |


|
inline |
Write TCS3472 Control register.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | ctl | - Control register value |

|
inline |
Write TCS3472 Enable register.
| [in] | pCpnt | - Pointer to TCS3472 component |
| [in] | en | - 0 Disable, 1 Enable |

