Gong Ke | d869dd7 | 2020-07-20 09:00:25 +0800 | [diff] [blame] | 1 | /** |
| 2 | * \file |
| 3 | * \brief DVB utility functions |
| 4 | */ |
| 5 | |
| 6 | #ifndef DVB_UTILS_H_ |
| 7 | #define DVB_UTILS_H_ |
| 8 | |
| 9 | #ifdef __cplusplus |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | |
| 13 | /**Demux input source.*/ |
| 14 | typedef enum { |
| 15 | DVB_DEMUX_SOURCE_TS0, /**< Hardware TS input port 0.*/ |
| 16 | DVB_DEMUX_SOURCE_TS1, /**< Hardware TS input port 1.*/ |
| 17 | DVB_DEMUX_SOURCE_TS2, /**< Hardware TS input port 2.*/ |
| 18 | DVB_DEMUX_SOURCE_DMA0 /**< DMA input port 0.*/ |
| 19 | } DVB_DemuxSource_t; |
| 20 | |
| 21 | /** |
| 22 | * Set the demux's input source. |
| 23 | * \param dmx_idx Demux device's index. |
| 24 | * \param src The demux's input source. |
| 25 | * \retval 0 On success. |
| 26 | * \retval -1 On error. |
| 27 | */ |
| 28 | int dvb_set_demux_source (int dmx_idx, DVB_DemuxSource_t src); |
| 29 | |
Chuanzhi Wang | 41bc067 | 2020-07-29 15:58:56 +0800 | [diff] [blame] | 30 | /** |
| 31 | * Get the demux's input source. |
| 32 | * \param dmx_idx Demux device's index. |
| 33 | * \param point src that demux's input source. |
| 34 | * \retval 0 On success. |
| 35 | * \retval -1 On error. |
| 36 | */ |
| 37 | int dvb_get_demux_source (int dmx_idx, DVB_DemuxSource_t *src); |
| 38 | |
| 39 | |
Gong Ke | d869dd7 | 2020-07-20 09:00:25 +0800 | [diff] [blame] | 40 | #ifdef __cplusplus |
| 41 | } |
| 42 | #endif |
| 43 | |
| 44 | #endif /*DVB_UTILS_H_*/ |
| 45 | |