My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
color_manager.c File Reference
#include <color_manager.h>

Functions

int sw_abs (int number)
 This function returns the absolute value of the number. More...
 
u32 calc_contrast_color (u32 input_color)
 
u32 color (s32int col)
 
u16 bit32_to_bit16 (u32 colour)
 
u16 bit24_to_bit16 (u32 colour)
 

Function Documentation

u16 bit24_to_bit16 ( u32  colour)
Parameters
colour
Returns
u16 bit32_to_bit16 ( u32  colour)
Parameters
colour
Returns
u32 calc_contrast_color ( u32  input_color)
Parameters
input_color
Returns
u32 color ( s32int  col)
Parameters
col
Returns
int sw_abs ( int  number)

This function returns the absolute value of the number.

Parameters
numberInteger value for which the absolute value has to be computed
Returns
: Returns the absolute value for the number