IrDA Sensor

Implementation file for the IrDA driver class.

Assembly

IrDASensor.h

Summary

Constructors
IRDASensor - IRDASensor()
Methods
init - int init()
IRDATransmit - unsigned char IRDATransmit( unsigned char *pData, int size, int timeout)

Constructors

IRDASensor

IRDASensor()

Parameters

None.

Methods

init

int init()

Initializing the component.

Parameters

None.

Return value

Type Description
int 0 in case of success, an error code otherwise.

IRDATransmit

unsigned char IRDATransmit( unsigned char *pData, int size, int timeout)

Transmit data with IrDA.

Parameters

Type Name Description
unsigned char * pData Pointer of data to send.
int size Size of data to send.
int timeout Duration of the timeout.