<commit_before>/*
 * eos_dispatcher.h
 *
 *  Created on: 22.11.2012
 *      Author: Jan
 */

/*
 * The EOS dispatcher code implements the state machine
 * to parse the incoming data into separate EOS messages.
 */

#ifndef EOS_DISPATCHER_H_
#define EOS_DISPATCHER_H_

// size of the EOS message ringbuffer
#define EOS_MESSAGE_BUFFER_SIZE 250

// call this when a new byte arrives on the EOS bus
void eos_byte_received(unsigned char data);

// call this periodically from the main loop
// to process any completed messages
void eosprotocol_process_message();

// this function has to send the given data to the PC
// totallength is the length of the message buffer
// message is the pointer to the message buffer
// the data in the buffer will be ready to send to the EOS bus,
// i.e. it will include the LEADIN and START bytes and a correct checksum
extern void eosprotocol_send_message( unsigned char* message, unsigned char totallength);

#define EOS_PACKET_START_BYTE 0xbb		// the first byte of any EOS packet
#define EOS_PACKET_LEADIN_BYTE 0x88     // the second byte of any EOS packet

#endif /* EOS_DISPATCHER_H_ */
<commit_msg>remove duplicate #define from eos430-master/eos_dispatcher.c<commit_after>/*
 * eos_dispatcher.h
 *
 *  Created on: 22.11.2012
 *      Author: Jan
 */

/*
 * The EOS dispatcher code implements the state machine
 * to parse the incoming data into separate EOS messages.
 */

#ifndef EOS_DISPATCHER_H_
#define EOS_DISPATCHER_H_

// call this when a new byte arrives on the EOS bus
void eos_byte_received(unsigned char data);

// call this periodically from the main loop
// to process any completed messages
void eosprotocol_process_message();

// this function has to send the given data to the PC
// totallength is the length of the message buffer
// message is the pointer to the message buffer
// the data in the buffer will be ready to send to the EOS bus,
// i.e. it will include the LEADIN and START bytes and a correct checksum
extern void eosprotocol_send_message( unsigned char* message, unsigned char totallength);

#define EOS_PACKET_START_BYTE 0xbb		// the first byte of any EOS packet
#define EOS_PACKET_LEADIN_BYTE 0x88     // the second byte of any EOS packet

#endif /* EOS_DISPATCHER_H_ */

{'fraction_non_alphanumeric': 0.060199220441749676, 'fraction_numerical': 0.0129926375054136, 'mean_word_length': 3.3421052631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1338297', 'n_tokens_mistral': 763, 'n_tokens_neox': 676, 'n_words': 297}