Tizen Native API  5.5

The IR API provides functions to control a IR transmitter.

Required Header

#include <device/ir.h>

Overview

The IR API provides the way to get the information whether IR is available and transmit IR command.

Related Features

This API is related with the following feature:

It is recommended to design feature related codes in your application for reliability.

You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.

To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.

More details on featuring your application can be found from feature element description.

Functions

int device_ir_is_available (bool *available)
 Gets the information whether IR module is available.
int device_ir_transmit (int carrier_frequency, int *pattern, int size)
 Transmits IR command.

Function Documentation

int device_ir_is_available ( bool *  available)

Gets the information whether IR module is available.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/use_ir
Parameters:
[out]availableThe information whether IR is available
Returns:
0 on success, otherwise a negative error value
Return values:
DEVICE_ERROR_NONESuccessful
DEVICE_ERROR_INVALID_PARAMETERInvalid parameter
DEVICE_ERROR_PERMISSION_DENIEDPermission denied
DEVICE_ERROR_OPERATION_FAILEDOperation failed
DEVICE_ERROR_NOT_SUPPORTEDNot supported device
int device_ir_transmit ( int  carrier_frequency,
int *  pattern,
int  size 
)

Transmits IR command.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/use_ir
Parameters:
[in]carrier_frequencyCarrier frequency to transmit IR command (Hertz)
[in]patternInteger array of IR command
[in]sizeSize of IR command pattern
Returns:
0 on success, otherwise a negative error value
Return values:
DEVICE_ERROR_NONESuccessful
DEVICE_ERROR_INVALID_PARAMETERInvalid parameter
DEVICE_ERROR_PERMISSION_DENIEDPermission denied
DEVICE_ERROR_OPERATION_FAILEDOperation failed
DEVICE_ERROR_NOT_SUPPORTEDNot supported device