<commit_before>/*
	Copyright (c) 2015 CurlyMo <<EMAIL>>

  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#ifndef _WIRING_X_I2C_DEV_H_
#define _WIRING_X_I2C_DEV_H_

#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>

inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
inline __s32 i2c_smbus_read_byte(int fd);
inline __s32 i2c_smbus_write_byte(int fd, int value);
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);

#endif<commit_msg>Proper i2c-dev definitions<commit_after>/*
	Copyright (c) 2015 CurlyMo <<EMAIL>>

  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#ifndef _WIRING_X_I2C_DEV_H_
#define _WIRING_X_I2C_DEV_H_

#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>

extern inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
extern inline __s32 i2c_smbus_read_byte(int fd);
extern inline __s32 i2c_smbus_write_byte(int fd, int value);
extern inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
extern inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
extern inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
extern inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);

#endif
{'fraction_non_alphanumeric': 0.09295929592959296, 'fraction_numerical': 0.040154015401540157, 'mean_word_length': 5.337979094076655, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5150516', 'n_tokens_mistral': 784, 'n_tokens_neox': 744, 'n_words': 216}