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

TCS3400 Driver procedures. More...

#include "TCS3400.h"
Include dependency graph for TCS3400_proc.c:

Functions

FctERR TCS3400_Init_Sequence (TCS3400_t *const pCpnt)
 Initialization Sequence for TCS3400 peripheral.
 
FctERR TCS3400_handler (TCS3400_t *const pCpnt)
 Handler for TCS3400 peripheral.
 
FctERR TCS3400_handler_it (TCS3400_t *const pCpnt)
 Handler for TCS3400 peripheral GPIO interrupt.
 
FctERR TCS3400_handler_all (void)
 Handler for all TCS3400 peripherals.
 
FctERR TCS3400_handler_it_all (void)
 Handler for all TCS3400 peripherals GPIO interrupt.
 

Variables

TCS3400_t TCS3400 [I2C_TCS3400_NB] = { 0 }
 TCS34000 User structure.
 
const uint16_t TCS3400_gain_tab [4] = { 1U, 4U, 16U, 64U }
 

Detailed Description

TCS3400 Driver procedures.

Author
SMFSW

TCS3400: Color Light-to-Digital Converter

Function Documentation

◆ TCS3400_handler()

FctERR TCS3400_handler ( TCS3400_t *const pCpnt)

Handler for TCS3400 peripheral.

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

◆ TCS3400_handler_all()

FctERR TCS3400_handler_all ( void )

Handler for all TCS3400 peripherals.

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

◆ TCS3400_handler_it()

FctERR TCS3400_handler_it ( TCS3400_t *const pCpnt)

Handler for TCS3400 peripheral GPIO interrupt.

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

◆ TCS3400_handler_it_all()

FctERR TCS3400_handler_it_all ( void )

Handler for all TCS3400 peripherals GPIO interrupt.

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

◆ TCS3400_Init_Sequence()

FctERR TCS3400_Init_Sequence ( TCS3400_t *const pCpnt)

Initialization Sequence for TCS3400 peripheral.

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

Variable Documentation

◆ TCS3400

TCS3400_t TCS3400[I2C_TCS3400_NB] = { 0 }

TCS34000 User structure.

◆ TCS3400_gain_tab

const uint16_t TCS3400_gain_tab[4] = { 1U, 4U, 16U, 64U }