/**
* @file peripheral_io.h
- * @brief This file contains the peripheral-io API.
+ * @brief This file contains the public peripheral-io interface.
*/
/**
- * @brief Enumeration for peripheral-io error.
+ * @brief Enumeration for error codes returned by the peripheral-io API.
* @since_tizen 4.0
*/
typedef enum {
*/
/**
- * @brief Enumeration of GPIO direction options.
+ * @brief Enumeration representing GPIO device direction options.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_gpio_direction_e;
/**
- * @brief Enumeration of edge types for the GPIO interrupt.
+ * @brief Enumeration for edge types for the GPIO interrupt.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_gpio_edge_e;
/**
- * @brief The handle of a GPIO pin.
+ * @brief An opaque handle to an object representing a GPIO pin.
* @since_tizen 4.0
*/
typedef struct _peripheral_gpio_s *peripheral_gpio_h;
/**
* @platform
- * @brief Opens a GPIO pin.
+ * @brief Opens a GPIO pin and returns a handle representing it
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes a GPIO pin.
+ * @brief Closes a GPIO pin and frees the resources associated with the handle
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the GPIO direction.
+ * @brief Sets the input/output direction of given GPIO pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the GPIO edge mode.
+ * @brief Sets the input edge mode of given GPIO pin device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Unsets the GPIO interrupted callback.
+ * @brief Unsets the GPIO interrupted callback invoked when the GPIO interrupt is triggered.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Gets the current value of the GPIO pin.
+ * @brief Gets the current value being exposed on the GPIO pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the value of the GPIO pin.
+ * @brief Sets the value to be exposed on the given GPIO pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
*/
/**
- * @brief The handle of the I2C slave device.
+ * @brief An opaque handle representing the I2C slave device.
* @since_tizen 4.0
*/
typedef struct _peripheral_i2c_s *peripheral_i2c_h;
/**
* @platform
- * @brief Opens an I2C slave device.
+ * @brief Opens an I2C slave device and returns a handle representing it
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
EXPORT_API int peripheral_i2c_open(int bus, int address, peripheral_i2c_h *i2c);
/**
- * @brief Enumeration for open flags (bitmask).
+ * @brief Enumeration for open flags (bitmask) for an i2c device.
* @since_tizen 6.5
*
* @remarks Enum values are supposed to be used as bitmask, where only one
/**
* @platform
- * @brief Opens an I2C slave device.
+ * @brief Opens an I2C slave device and returns a representing handle
* @since_tizen 6.5
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes an I2C slave device.
+ * @brief Closes an I2C slave device and frees resources associated with the handle.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Reads the bytes data from the I2C slave device.
+ * @brief Reads the bytes data from the I2C slave device into a buffer
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Writes the bytes data to the I2C slave device.
+ * @brief Writes the bytes data from a buffer to the I2C slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
*/
/**
- * @brief The handle of the PWM peripherals.
+ * @brief An opaque handle representing a PWM peripherals pin.
* @since_tizen 4.0
*/
typedef struct _peripheral_pwm_s *peripheral_pwm_h;
/**
- * @brief Enumeration for Polarity.
+ * @brief Enumeration for representing PWN active signal Polarity.
* @since_tizen 4.0
*/
typedef enum {
/**
* @platform
- * @brief Opens the PWM pin.
+ * @brief Opens the PWM pin and returns a handle representing it
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes the PWM pin.
+ * @brief Closes a PWM pin and frees resources associated with the handle.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets period of the PWM pin.
+ * @brief Sets the period length in nanoseconds for the given PWM pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets duty cycle of the PWM pin.
+ * @brief Sets the length of a duty cycle of the given PWM pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets polarity of the PWM pin.
+ * @brief Sets the active signal polarity of the given PWM pin.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Enables the PWM pin.
+ * @brief Toggles whether given PWM peripherals pin is enabled.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
*/
/**
- * @brief The handle of the ADC peripherals.
+ * @brief An opaque handle representing an ADC peripherals pin.
* @since_tizen 5.0
*/
typedef struct _peripheral_adc_s *peripheral_adc_h;
/**
* @platform
- * @brief Opens the ADC pin.
+ * @brief Opens the ADC pin and returns a handle representing it
* @since_tizen 5.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes the ADC pin.
+ * @brief Closes the ADC pin and frees the resources associated with it.
* @since_tizen 5.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Gets the current value of the ADC pin.
+ * @brief Gets the current value of the ADC peripherals pin.
* @since_tizen 5.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
*/
/**
- * @brief The handle to the UART peripherals.
+ * @brief An opaque handle representing a UART peripherals device.
* @since_tizen 4.0
*/
typedef struct _peripheral_uart_s *peripheral_uart_h;
/**
- * @brief Enumeration for baud rate.
+ * @brief Enumeration for signal baud rate for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_uart_baud_rate_e;
/**
- * @brief Enumeration for byte size.
+ * @brief Enumeration for data byte size for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_uart_byte_size_e;
/**
- * @brief Enumeration for parity bit.
+ * @brief Enumeration for parity bit for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_uart_parity_e;
/**
- * @brief Enumeration for stop bits.
+ * @brief Enumeration for the number of stop bits for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_uart_stop_bits_e;
/**
- * @brief Enumeration for hardware flow control.
+ * @brief Enumeration for hardware flow control for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_uart_hardware_flow_control_e;
/**
- * @brief Enumeration for software flow control.
+ * @brief Enumeration for software flow control for UART slave devices.
* @since_tizen 4.0
*/
typedef enum {
/**
* @platform
- * @brief Opens the UART slave device.
+ * @brief Opens the UART slave device and returns a handle representing it
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Opens the UART slave device.
+ * @brief Opens the UART slave device using specified open flags, and returns a handle representing it
* @since_tizen 6.5
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes the UART slave device.
+ * @brief Closes the UART slave device and frees resources associated with the handle.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets baud rate of the UART slave device.
+ * @brief Sets the baud rate for the given UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets byte size of the UART slave device.
+ * @brief Sets data byte size for the given UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets parity bit of the UART slave device.
+ * @brief Sets the parity bit for the given UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets stop bits of the UART slave device.
+ * @brief Sets the number of stop bits for the UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets flow control of the UART slave device.
+ * @brief Sets hardware and software flow control of the UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Reads data from the UART slave device.
+ * @brief Reads data from the UART slave device into a local buffer.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Writes data to the UART slave device.
+ * @brief Writes data from a buffer to the UART slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
*/
/**
- * @brief The handle of a SPI peripherals.
+ * @brief An opaque handle representing a SPI peripherals slave device.
* @since_tizen 4.0
*/
typedef struct _peripheral_spi_s *peripheral_spi_h;
/**
- * @brief Enumeration of SPI transfer modes.
+ * @brief Enumeration of transfer modes for SPI slave devices.
* @since_tizen 4.0
*/
typedef enum {
} peripheral_spi_mode_e;
/**
- * @brief Enumeration of bit orders.
+ * @brief Enumeration of bit orders for SPI slave device interfaces.
* @since_tizen 4.0
*/
typedef enum {
/**
* @platform
- * @brief Opens a SPI slave device.
+ * @brief Opens a SPI slave device and returns a handle representing it.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Closes the SPI slave device.
+ * @brief Closes the SPI slave device and frees resources associated with the handle.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the SPI transfer mode.
+ * @brief Sets the transfer mode for the given SPI slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the SPI bit order.
+ * @brief Sets the transfer bit order for given SPI slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the number of bits per word.
+ * @brief Sets the number of bits per word for given SPI slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Sets the frequency of the SPI bus.
+ * @brief Sets the board-dependent frequency of the SPI bus.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Reads the bytes data from the SPI slave device.
+ * @brief Reads the bytes data from the SPI slave device to a local buffer.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Writes the bytes data to the SPI slave device.
+ * @brief Writes the bytes data buffer to the SPI slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio
/**
* @platform
- * @brief Exchanges the bytes data to the SPI slave device.
+ * @brief Exchanges (read and write) the bytes data to the SPI slave device.
* @since_tizen 4.0
* @privlevel platform
* @privilege http://tizen.org/privilege/peripheralio