| 1 | /**************************************************************************** |
|---|
| 2 | * Copyright (c) 2004 DST Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: dsthhalir.h |
|---|
| 5 | * |
|---|
| 6 | * Description: DST HAL UIRT Interface function definition |
|---|
| 7 | * |
|---|
| 8 | * |
|---|
| 9 | * notes: jfet050527 |
|---|
| 10 | * |
|---|
| 11 | ***************************************************************************/ |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | #if !defined (_DSTHAL_UIRT_H_) |
|---|
| 15 | #define _DSTHAL_UIRT_H_ |
|---|
| 16 | |
|---|
| 17 | #include "dsthallocal.h" |
|---|
| 18 | |
|---|
| 19 | //IR format |
|---|
| 20 | typedef enum |
|---|
| 21 | { |
|---|
| 22 | DHL_IR_START = 0, |
|---|
| 23 | DHL_IR_NEC, |
|---|
| 24 | DHL_IR_SONY, |
|---|
| 25 | DHL_IR_RC5, |
|---|
| 26 | DHL_IR_TOSHIBA, |
|---|
| 27 | DHL_IR_RCA, |
|---|
| 28 | DHL_IR_MITSUBISHI, |
|---|
| 29 | DHL_IR_PANASONIC, |
|---|
| 30 | DHL_IR_END, |
|---|
| 31 | }DHL_IR_FORMAT; |
|---|
| 32 | |
|---|
| 33 | typedef enum |
|---|
| 34 | { |
|---|
| 35 | DHL_IR_KEYPAD, |
|---|
| 36 | DHL_IR_REMOCON |
|---|
| 37 | }DHL_IR_DATA_t; |
|---|
| 38 | |
|---|
| 39 | //port number |
|---|
| 40 | typedef enum |
|---|
| 41 | { |
|---|
| 42 | DHL_UIRT_START, |
|---|
| 43 | DHL_UIRT_PORT_A = 0, //port A |
|---|
| 44 | DHL_UIRT_PORT_B, //port B |
|---|
| 45 | DHL_UIRT_PORT_MAX, |
|---|
| 46 | }DHL_UIRT_PORT; |
|---|
| 47 | |
|---|
| 48 | typedef void (*IRCbFunc_t)(int bKeypad, DS_U32 Code, int bPressed); |
|---|
| 49 | |
|---|
| 50 | #if defined __cplusplus |
|---|
| 51 | extern "C" { |
|---|
| 52 | #endif |
|---|
| 53 | |
|---|
| 54 | //FOR RX |
|---|
| 55 | DHL_RESULT DHL_IR_Init(DHL_IR_FORMAT IrFormat); |
|---|
| 56 | DHL_RESULT DHL_IR_Close(void); |
|---|
| 57 | DHL_RESULT DHL_IR_SetIrFormat(DHL_IR_FORMAT IrFormat); |
|---|
| 58 | DHL_RESULT DHL_IR_SetCustomCode(DS_U16 CustomCode); |
|---|
| 59 | DHL_RESULT DHL_IR_SetCbFunc(IRCbFunc_t CBFuncPtr); |
|---|
| 60 | void DHL_IR_SetScanTime(DS_U16 ScanTime); |
|---|
| 61 | |
|---|
| 62 | //FOR TX (GEMSTART EPG) |
|---|
| 63 | DHL_RESULT DHL_UIRT_Initialize(DHL_UIRT_PORT uirtport); |
|---|
| 64 | DHL_RESULT DHL_UIRT_Close(DHL_UIRT_PORT uirtport); |
|---|
| 65 | DS_BOOL DHL_UIRT_XmitIsBusy(DHL_UIRT_PORT uirtport); |
|---|
| 66 | DHL_RESULT DHL_UIRT_XmitWriteBuf(DHL_UIRT_PORT uirtport, DS_U32 * buffer, DS_U32 lebgth); |
|---|
| 67 | DHL_RESULT DHL_UIRT_XmitAbortTransmit(DHL_UIRT_PORT uirtport); |
|---|
| 68 | DHL_RESULT DHL_UIRT_SetXmitCarrierDivider(DHL_UIRT_PORT uirtport, DS_U32 CarrierFreq, DS_BOOL bnonmodulate); |
|---|
| 69 | DHL_RESULT DHL_UIRT_SetXmitClkDiv(DHL_UIRT_PORT uirtport, DS_U32 xclkdiv); |
|---|
| 70 | |
|---|
| 71 | #if defined __cplusplus |
|---|
| 72 | } |
|---|
| 73 | #endif |
|---|
| 74 | |
|---|
| 75 | #endif /* _DSTHAL_UIRT_H_ */ |
|---|
| 76 | |
|---|
| 77 | |
|---|