<commit_before>#ifndef SENSOR_DISTANCE_SRF02_H
#define	SENSOR_DISTANCE_SRF02_H

#define

#include <plib/i2c.h>

#ifdef	__cplusplus
extern "C" {
#endif

    void sensor_distance_SRF02_sendCommand(char addr_i2c, char command);
    char sensor_distance_SRF02_readSoftwareRevision(char addr_i2c);
    int sensor_distance_SRF02_readDistance(char addr_i2c);


#ifdef	__cplusplus
}
#endif

#endif	/* SENSOR_DISTANCE_SRF02_H */
<commit_msg>sensor_distance_SRF02.h Setup define<commit_after>#ifndef SENSOR_DISTANCE_SRF02_H
#define	SENSOR_DISTANCE_SRF02_H

#define SENSOR_DISTANCE_SRF02_REGISTER_REVISION     0x00
#define SENSOR_DISTANCE_SRF02_REGISTER_COMMAND      0x00
#define SENSOR_DISTANCE_SRF02_REGISTER_RANGE_MSB    0x02
#define SENSOR_DISTANCE_SRF02_REGISTER_RANGE_LSB    0x03
#define SENSOR_DISTANCE_SRF02_REGISTER_RANGE_MSB    0x04
#define SENSOR_DISTANCE_SRF02_REGISTER_RANGE_LSB    0x05

#define SENSOR_DISTANCE_SRF02_COMMAND_RANGE_INCH    0x50
#define SENSOR_DISTANCE_SRF02_COMMAND_RANGE_CM      0x51
#define SENSOR_DISTANCE_SRF02_COMMAND_RANGE_USEC    0x52
#define SENSOR_DISTANCE_SRF02_COMMAND_FK_RANGE_INCH 0x56
#define SENSOR_DISTANCE_SRF02_COMMAND_FK_RANGE_CM   0x57
#define SENSOR_DISTANCE_SRF02_COMMAND_FK_RANGE_USEC 0x58
#define SENSOR_DISTANCE_SRF02_COMMAND_SEND_BURST    0x5C
#define SENSOR_DISTANCE_SRF02_COMMAND_AUTOTUNE      0x60
#define SENSOR_DISTANCE_SRF02_COMMAND_CHANGE_I2C_1  0xA0
#define SENSOR_DISTANCE_SRF02_COMMAND_CHANGE_I2C_2  0xA5
#define SENSOR_DISTANCE_SRF02_COMMAND_CHANGE_I2C_3  0xAA

#include <plib/i2c.h>

#ifdef	__cplusplus
extern "C" {
#endif

    void sensor_distance_SRF02_sendCommand(char addr_i2c, char command);
    char sensor_distance_SRF02_readSoftwareRevision(char addr_i2c);
    int sensor_distance_SRF02_readDistance(char addr_i2c);


#ifdef	__cplusplus
}
#endif

#endif	/* SENSOR_DISTANCE_SRF02_H */

{'fraction_non_alphanumeric': 0.04597079502433748, 'fraction_numerical': 0.06489994591671173, 'mean_word_length': 7.809523809523809, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1874945', 'n_tokens_mistral': 864, 'n_tokens_neox': 806, 'n_words': 108}