I am only starting with cpp and trying to use custom structure. which looks like this :
typedef struct ws2811_t { ui