<commit_before>#pragma once

#include <Arduino.h>

#include <limits.h>
#include <EtherCard.h>

#include "util.h"
#include "constants.h"
#include "stepper.h"
#include "tick.h"
#include "config.h"
#include "watchdog.h"
#include "PacketBuffer.h"

#define LAN_ID 0x11					// ID des Boards im LAN, wird benutzt um die Mac-Adresse zu generieren
#define PROTOCOL_PORT 14804			// Port fr das Protokoll ber UDP
#define ETHERNET_BUFFER_SIZE 300	// Gre des Ethernet Buffers in Bytes	
#define HEADER_SIZE 9				// Gre des Paket-Headers in Bytes

extern int32_t loopTime;
extern int32_t networkTime;
extern int32_t maxNetworkTime;
extern int32_t stepperTime;

boolean checkRevision(int32_t lastRevision, int32_t revision);

void initNetwork();
boolean loopNetwork();

void sendPacket();
void writeHeader(boolean guarenteed, uint8_t packetType, int32_t revision);
boolean readPosition(PacketBuffer* packet, uint8_t* x, uint8_t* y);

void sendAckPacket(int32_t revision);
void sendData(int32_t revision);<commit_msg>Standard LAN_ID auf 0x10 setzen<commit_after>#pragma once

#include <Arduino.h>

#include <limits.h>
#include <EtherCard.h>

#include "util.h"
#include "constants.h"
#include "stepper.h"
#include "tick.h"
#include "config.h"
#include "watchdog.h"
#include "PacketBuffer.h"

#define LAN_ID 0x10					// ID des Boards im LAN, wird benutzt um die Mac-Adresse zu generieren
#define PROTOCOL_PORT 14804			// Port fr das Protokoll ber UDP
#define ETHERNET_BUFFER_SIZE 300	// Gre des Ethernet Buffers in Bytes	
#define HEADER_SIZE 9				// Gre des Paket-Headers in Bytes

extern int32_t loopTime;
extern int32_t networkTime;
extern int32_t maxNetworkTime;
extern int32_t stepperTime;

boolean checkRevision(int32_t lastRevision, int32_t revision);

void initNetwork();
boolean loopNetwork();

void sendPacket();
void writeHeader(boolean guarenteed, uint8_t packetType, int32_t revision);
boolean readPosition(PacketBuffer* packet, uint8_t* x, uint8_t* y);

void sendAckPacket(int32_t revision);
void sendData(int32_t revision);
{'fraction_non_alphanumeric': 0.09415262636273539, 'fraction_numerical': 0.03419226957383548, 'mean_word_length': 5.707641196013289, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7121507', 'n_tokens_mistral': 777, 'n_tokens_neox': 701, 'n_words': 215}