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

Color Light Sensing shared. More...

#include "shared_CLS.h"
#include <math.h>
Include dependency graph for shared_CLS.c:

Functions

FctERR CLS_get_chromacity (float xy[2], uint32_t *const illum, const float mat[3][3], const uint16_t r, const uint16_t g, const uint16_t b)
 !< This matrix is the result of a transformation composed of correlations at different light sources (based on TAOS DN25 application note)
 
FctERR CLS_get_CCT (uint32_t *const cct, const float xy[2])
 Determining CCT (correlated temperature) following xy values.
 

Variables

const float CLS_RGB2XYZ_Default [3][3]
 

Detailed Description

Color Light Sensing shared.

Author
SMFSW

Function Documentation

◆ CLS_get_CCT()

FctERR CLS_get_CCT ( uint32_t *const cct,
const float xy[2] )

Determining CCT (correlated temperature) following xy values.

Parameters
[in,out]cct- Pointer to CCT result
[in]xy- Pointer to chromacity coordinates
Returns
FctERR - error code

◆ CLS_get_chromacity()

FctERR CLS_get_chromacity ( float xy[2],
uint32_t *const illum,
const float mat[3][3],
const uint16_t r,
const uint16_t g,
const uint16_t b )

!< This matrix is the result of a transformation composed of correlations at different light sources (based on TAOS DN25 application note)

Determining chromacity following RGB values.

Variable Documentation

◆ CLS_RGB2XYZ_Default

const float CLS_RGB2XYZ_Default[3][3]
Initial value:
= {
{ -0.14282f, 1.54924f, -0.95641f },
{ -0.32466f, 1.57837f, -0.73191f },
{ -0.68202f, 0.77073f, 0.56332f } }