Corsair Lighting Protocol  0.15.0
Control LEDs connected to an Arduino with iCUE
CorsairLightingProtocolResponse Class Referenceabstract
+ Inheritance diagram for CorsairLightingProtocolResponse:

Public Member Functions

virtual void send (const uint8_t *data, size_t size) const
 
virtual void sendError () const
 
virtual void send_P (const uint8_t *data, size_t size) const
 
virtual void sendX (const uint8_t *data, const size_t x) const =0
 

Member Function Documentation

◆ send()

void CorsairLightingProtocolResponse::send ( const uint8_t *  data,
size_t  size 
) const
virtual

Send 64 bytes via the CorsairLightingProtocol. All unset bytes will be filled with zeros.

Parameters
datathe array with the data
sizethe length of the array

◆ send_P()

void CorsairLightingProtocolResponse::send_P ( const uint8_t *  data,
size_t  size 
) const
virtual

Send data from program memory.

Parameters
datathe array with the data, the pointer must point to program memory
sizethe length of the array which should be send.

◆ sendError()

void CorsairLightingProtocolResponse::sendError ( ) const
virtual

Send an error.

◆ sendX()

virtual void CorsairLightingProtocolResponse::sendX ( const uint8_t *  data,
const size_t  x 
) const
pure virtual

Send some bytes data via the CorsairLightingProtocol.

Parameters
datathe array with the data
xthe length of the array which should be send.

Implemented in CorsairLightingProtocolHID.


The documentation for this class was generated from the following files: