grblHAL core  20241107
rgb.h File Reference

Go to the source code of this file.

Data Structures

union  rgb_color_mask_t
 
union  rgb_color_t
 
union  rgb_properties_t
 
struct  rgb_ptr_t
 
struct  neopixel_cfg_t
 

Typedefs

typedef void(* rgb_set_color_ptr) (uint16_t device, rgb_color_t color)
 Pointer to function for setting RGB (LED) output. More...
 
typedef void(* rgb_set_color_masked_ptr) (uint16_t device, rgb_color_t color, rgb_color_mask_t mask)
 Pointer to function for setting RGB (LED) output, with mask for which LEDs to change. More...
 
typedef uint8_t(* rgb_set_intensity_ptr) (uint8_t intensity)
 Pointer to function for setting RGB (LED) intensity. More...
 
typedef void(* rgb_write_ptr) (void)
 Pointer to function for outputting RGB (LED) data to Neopixel strip. More...
 

Typedef Documentation

◆ rgb_set_color_masked_ptr

typedef void(* rgb_set_color_masked_ptr) (uint16_t device, rgb_color_t color, rgb_color_mask_t mask)

Pointer to function for setting RGB (LED) output, with mask for which LEDs to change.

Parameters
colora rgb_color_t union.
maska rgb_color_mask_t union.

◆ rgb_set_color_ptr

typedef void(* rgb_set_color_ptr) (uint16_t device, rgb_color_t color)

Pointer to function for setting RGB (LED) output.

Parameters
colora rgb_color_t union.

◆ rgb_set_intensity_ptr

typedef uint8_t(* rgb_set_intensity_ptr) (uint8_t intensity)

Pointer to function for setting RGB (LED) intensity.

Parameters
intensityin the range 0 - 255.
Returns
previuous intensity.

◆ rgb_write_ptr

typedef void(* rgb_write_ptr) (void)

Pointer to function for outputting RGB (LED) data to Neopixel strip.