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

Color Light Sensing shared. More...

#include "sarmfsw.h"
#include "I2C_component.h"
Include dependency graph for shared_CLS.h:
This graph shows which files directly or indirectly include this file:

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)
 Determining chromacity following RGB values.
 
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 )

Determining chromacity following RGB values.

Parameters
[in,out]xy- Pointer to chromacity coordinates result
[in,out]illum- Pointer to illuminance result
[in]mat- pointer to conversion matrix (RGB to XYZ)
[in]r- Red value
[in]g- Green value
[in]b- Blue value
Returns
FctERR - error code

Determining chromacity following RGB values.

Variable Documentation

◆ CLS_RGB2XYZ_Default

const float CLS_RGB2XYZ_Default[3][3]
extern