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.*/ |
Chuanzhi Wang | 670fc04 | 2020-08-12 11:11:04 +0800 | [diff] [blame] | 18 | DVB_DEMUX_SOURCE_TS3, /**< Hardware TS input port 3.*/ |
| 19 | DVB_DEMUX_SOURCE_TS4, /**< Hardware TS input port 4.*/ |
| 20 | DVB_DEMUX_SOURCE_TS5, /**< Hardware TS input port 5.*/ |
| 21 | DVB_DEMUX_SOURCE_TS6, /**< Hardware TS input port 6.*/ |
| 22 | DVB_DEMUX_SOURCE_TS7, /**< Hardware TS input port 7.*/ |
| 23 | DVB_DEMUX_SOURCE_DMA0, /**< DMA input port 0.*/ |
| 24 | DVB_DEMUX_SOURCE_DMA1, /**< DMA input port 1.*/ |
| 25 | DVB_DEMUX_SOURCE_DMA2, /**< DMA input port 2.*/ |
| 26 | DVB_DEMUX_SOURCE_DMA3, /**< DMA input port 3.*/ |
| 27 | DVB_DEMUX_SOURCE_DMA4, /**< DMA input port 4.*/ |
| 28 | DVB_DEMUX_SOURCE_DMA5, /**< DMA input port 5.*/ |
| 29 | DVB_DEMUX_SOURCE_DMA6, /**< DMA input port 6.*/ |
| 30 | DVB_DEMUX_SOURCE_DMA7 /**< DMA input port 7.*/ |
Gong Ke | d869dd7 | 2020-07-20 09:00:25 +0800 | [diff] [blame] | 31 | } DVB_DemuxSource_t; |
| 32 | |
| 33 | /** |
| 34 | * Set the demux's input source. |
| 35 | * \param dmx_idx Demux device's index. |
| 36 | * \param src The demux's input source. |
| 37 | * \retval 0 On success. |
| 38 | * \retval -1 On error. |
| 39 | */ |
| 40 | int dvb_set_demux_source (int dmx_idx, DVB_DemuxSource_t src); |
| 41 | |
Chuanzhi Wang | 41bc067 | 2020-07-29 15:58:56 +0800 | [diff] [blame] | 42 | /** |
| 43 | * Get the demux's input source. |
| 44 | * \param dmx_idx Demux device's index. |
| 45 | * \param point src that demux's input source. |
| 46 | * \retval 0 On success. |
| 47 | * \retval -1 On error. |
| 48 | */ |
| 49 | int dvb_get_demux_source (int dmx_idx, DVB_DemuxSource_t *src); |
| 50 | |
| 51 | |
Gong Ke | d869dd7 | 2020-07-20 09:00:25 +0800 | [diff] [blame] | 52 | #ifdef __cplusplus |
| 53 | } |
| 54 | #endif |
| 55 | |
| 56 | #endif /*DVB_UTILS_H_*/ |
| 57 | |