Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ContinuousCCSender14< INPUT_PRECISION_BITS > Class Template Reference

#include <MIDI_Senders/ContinuousCCSender.hpp>

Detailed Description

template<uint8_t INPUT_PRECISION_BITS>
class ContinuousCCSender14< INPUT_PRECISION_BITS >

Class that sends continuous MIDI control change messages with a resolution of 14 bits.

Template Parameters
INPUT_PRECISION_BITSThe resolution of the input values. For example, if INPUT_PRECISION_BITS == 10, the send function expects a value between 0 and 1023.

Definition at line 37 of file ContinuousCCSender.hpp.

+ Collaboration diagram for ContinuousCCSender14< INPUT_PRECISION_BITS >:

Public Member Functions

void send (uint16_t value, MIDIAddress address)
 Send a 14-bit CC message to the given address.
 

Static Public Member Functions

static constexpr uint8_t precision ()
 Get this sender's precision.
 

Member Function Documentation

◆ send()

template<uint8_t INPUT_PRECISION_BITS>
void send ( uint16_t value,
MIDIAddress address )
inline

Send a 14-bit CC message to the given address.

Sends two 7-bit CC packets, one for address (MSB), and one for address + 0x20 (LSB).

Definition at line 42 of file ContinuousCCSender.hpp.

◆ precision()

template<uint8_t INPUT_PRECISION_BITS>
static constexpr uint8_t precision ( )
inlinestaticconstexpr

Get this sender's precision.

Definition at line 49 of file ContinuousCCSender.hpp.


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