<commit_before>#ifndef ACCESSORY_H
#define ACCESSORY_H

/**
 * Returned by `initAccessory()`. This struct represents the resources required to accept new connections.
 *
 * You can free these resources by calling `deInitaccessory()`.
 *
 * @see initAccessory()
 * @see deInitaccessory()
 */
typedef struct Accessory Accessory;

/**
 * Returned by `getNextAndroidConnection()`. This struct represents the connection to a remote Android device. There is no way to know if this connection is over bluetooth or usb.
 *
 * This struct is required in all the read/write functions.
 *
 * You should always close this connection using `closeAndroidConnection()` if you are done or if a error occurred on read/write.
 *
 * @see readAccessory()
 * @see readAllAccessory()
 * @see writeAccessory()
 * @see writeAllAccessory()
 */
typedef struct AapConnection AapConnection;

/*! \mainpage How to use this library
 *
 * \section intro_sec Introduction
 *
 * This library offers the ability to communicate to a Android device more easily.
 *
 * It does this by offering two ways of communication and abstracting the low-level communication protocol used (bluetooth or usb).
 *
 * \section install_sec Installation
 *
 * This project has the following dependecies:
 * \li libudev for new device detection
 * \li libusb-1.0 for usb communication<commit_msg>MCU's are not supported. Mentioned in the docs now.<commit_after>#ifndef ACCESSORY_H
#define ACCESSORY_H

/**
 * Returned by `initAccessory()`. This struct represents the resources required to accept new connections.
 *
 * You can free these resources by calling `deInitaccessory()`.
 *
 * @see initAccessory()
 * @see deInitaccessory()
 */
typedef struct Accessory Accessory;

/**
 * Returned by `getNextAndroidConnection()`. This struct represents the connection to a remote Android device. There is no way to know if this connection is over bluetooth or usb.
 *
 * This struct is required in all the read/write functions.
 *
 * You should always close this connection using `closeAndroidConnection()` if you are done or if a error occurred on read/write.
 *
 * @see readAccessory()
 * @see readAllAccessory()
 * @see writeAccessory()
 * @see writeAllAccessory()
 */
typedef struct AapConnection AapConnection;

/*! \mainpage How to use this library
 *
 * \section intro_sec Introduction
 *
 * This library offers the ability to communicate to a Android device more easily. This library is designed to be run on any - embedded - Linux system. This library can not be run on a micro controller unit without a operating system.
 *
 * The main feature is its ability to communicate to a Android device using the Android accessory protocol or bluetooth. This is done transparently and you have no way of knowing what underlying communication protocol is used.
 *
 * \section install_sec Installation
 *
 * This project has the following dependencies:
 * \li libudev for new device detection
 * \li libusb-1.0 for usb communication
{'fraction_non_alphanumeric': 0.0723905723905724, 'fraction_numerical': 0.0013468013468013469, 'mean_word_length': 4.2770870337477795, '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': '1451501', 'n_tokens_mistral': 765, 'n_tokens_neox': 751, 'n_words': 373}