|
4 | 4 | #define MAX_4_CH_LEDS_PER_UNIVERSE 128 |
5 | 5 | #define MAX_CHANNELS_PER_UNIVERSE 512 |
6 | 6 |
|
| 7 | +// forward declarations |
| 8 | +static void handleDDPPacket(e131_packet_t* p); |
| 9 | +static void handleArtnetPollReply(IPAddress ipAddress); |
| 10 | +static void prepareArtnetPollReply(ArtPollReply *reply); |
| 11 | +static void sendArtnetPollReply(ArtPollReply *reply, IPAddress ipAddress, uint16_t portAddress); |
| 12 | + |
| 13 | + |
7 | 14 | /* |
8 | 15 | * E1.31 handler |
9 | 16 | */ |
10 | 17 |
|
11 | 18 | //DDP protocol support, called by handleE131Packet |
12 | 19 | //handles RGB data only |
13 | | -void handleDDPPacket(e131_packet_t* p) { |
| 20 | +static void handleDDPPacket(e131_packet_t* p) { |
14 | 21 | static bool ddpSeenPush = false; // have we seen a push yet? |
15 | 22 | int lastPushSeq = e131LastSequenceNumber[0]; |
16 | 23 |
|
@@ -336,7 +343,7 @@ void handleDMXData(uint16_t uni, uint16_t dmxChannels, uint8_t* e131_data, uint8 |
336 | 343 | e131NewData = true; |
337 | 344 | } |
338 | 345 |
|
339 | | -void handleArtnetPollReply(IPAddress ipAddress) { |
| 346 | +static void handleArtnetPollReply(IPAddress ipAddress) { |
340 | 347 | ArtPollReply artnetPollReply; |
341 | 348 | prepareArtnetPollReply(&artnetPollReply); |
342 | 349 |
|
@@ -402,7 +409,7 @@ void handleArtnetPollReply(IPAddress ipAddress) { |
402 | 409 | #endif |
403 | 410 | } |
404 | 411 |
|
405 | | -void prepareArtnetPollReply(ArtPollReply *reply) { |
| 412 | +static void prepareArtnetPollReply(ArtPollReply *reply) { |
406 | 413 | // Art-Net |
407 | 414 | reply->reply_id[0] = 0x41; |
408 | 415 | reply->reply_id[1] = 0x72; |
@@ -521,7 +528,7 @@ void prepareArtnetPollReply(ArtPollReply *reply) { |
521 | 528 | } |
522 | 529 | } |
523 | 530 |
|
524 | | -void sendArtnetPollReply(ArtPollReply *reply, IPAddress ipAddress, uint16_t portAddress) { |
| 531 | +static void sendArtnetPollReply(ArtPollReply *reply, IPAddress ipAddress, uint16_t portAddress) { |
525 | 532 | reply->reply_net_sw = (uint8_t)((portAddress >> 8) & 0x007F); |
526 | 533 | reply->reply_sub_sw = (uint8_t)((portAddress >> 4) & 0x000F); |
527 | 534 | reply->reply_sw_out[0] = (uint8_t)(portAddress & 0x000F); |
|
0 commit comments