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

TCS3472 Driver procedures. More...

#include "TCS3472.h"
Include dependency graph for TCS3472_proc.c:

Functions

FctERR TCS3472_Init_Sequence (TCS3472_t *const pCpnt)
 Initialization Sequence for TCS3472 peripheral.
 
FctERR TCS3472_handler (TCS3472_t *const pCpnt)
 Handler for TCS3472 peripheral.
 
FctERR TCS3472_handler_it (TCS3472_t *const pCpnt)
 Handler for TCS3472 peripheral GPIO interrupt.
 
FctERR TCS3472_handler_all (void)
 Handler for all TCS3472 peripherals.
 
FctERR TCS3472_handler_it_all (void)
 Handler for all TCS3472 peripherals GPIO interrupt.
 

Variables

TCS3472_t TCS3472 [I2C_TCS3472_NB] = { 0 }
 TCSL3472 User structure.
 
const uint16_t TCS3472_gain_tab [4] = { 1U, 4U, 16U, 60U }
 

Detailed Description

TCS3472 Driver procedures.

Author
SMFSW

TCS3472: Color light-to-digital converter with IR filter

Function Documentation

◆ TCS3472_handler()

FctERR TCS3472_handler ( TCS3472_t *const pCpnt)

Handler for TCS3472 peripheral.

Weak Functions
TCS3472 handler may be user implemented to suit custom needs
Note
May be called periodically to handle TCS3472 tasks
Alternately may be called when event occurs on TCS3472 pin (or by calling TCS3472_handler_it instead)
Parameters
[in]pCpnt- Pointer to TCS3472 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TCS3472_handler_all()

FctERR TCS3472_handler_all ( void )

Handler for all TCS3472 peripherals.

Note
May be called periodically to handle all TCS3472 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ TCS3472_handler_it()

FctERR TCS3472_handler_it ( TCS3472_t *const pCpnt)

Handler for TCS3472 peripheral GPIO interrupt.

Note
TCS3472_INT_GPIO_Init has to be called at init before using interrupt handler function
Weak Functions
TCS3472 GPIO interrupt handler may be user implemented to suit custom needs
Note
May be called periodically to handle TCS3472 tasks through interrupts
Parameters
[in]pCpnt- Pointer to TCS3472 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TCS3472_handler_it_all()

FctERR TCS3472_handler_it_all ( void )

Handler for all TCS3472 peripherals GPIO interrupt.

Note
TCS3472_INT_GPIO_Init has to be called at init before using interrupt handler function
May be called periodically to handle all TCS3472 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ TCS3472_Init_Sequence()

FctERR TCS3472_Init_Sequence ( TCS3472_t *const pCpnt)

Initialization Sequence for TCS3472 peripheral.

Weak Functions
TCS3472 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to TCS3472 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ TCS3472

TCS3472_t TCS3472[I2C_TCS3472_NB] = { 0 }

TCSL3472 User structure.

◆ TCS3472_gain_tab

const uint16_t TCS3472_gain_tab[4] = { 1U, 4U, 16U, 60U }