Revision dd8738ea os/core/inc/aos_iostream.h
os/core/inc/aos_iostream.h | ||
---|---|---|
31 | 31 |
#define AOS_IOCHANNEL_ATTACHED (1 << 0) |
32 | 32 |
|
33 | 33 |
/** |
34 |
* @brief Channel flag to indicate whether the channel is set as input. |
|
35 |
*/ |
|
36 |
#define AOS_IOCHANNEL_INPUT_ENABLE (1 << 1) |
|
37 |
|
|
38 |
/** |
|
34 | 39 |
* @brief Channel flag to indicate whether the channel is set as output. |
35 | 40 |
*/ |
36 |
#define AOS_IOCHANNEL_OUTPUT_ENABLE (1 << 1)
|
|
41 |
#define AOS_IOCHANNEL_OUTPUT_ENABLE (1 << 2)
|
|
37 | 42 |
|
38 | 43 |
/* |
39 | 44 |
* forward definitions |
... | ... | |
120 | 125 |
void aosIOChannelInit(AosIOChannel* channel, BaseAsynchronousChannel* asyncchannel); |
121 | 126 |
void aosIOStreamAddChannel(AosIOStream* stream, AosIOChannel* channel); |
122 | 127 |
aos_status_t aosIOStreamRemoveChannel(AosIOStream* stream, AosIOChannel* channel); |
128 |
void aosIOChannelInputEnable(AosIOChannel* channel); |
|
129 |
void aosIOChannelInputDisable(AosIOChannel* channel); |
|
123 | 130 |
void aosIOChannelOutputEnable(AosIOChannel* channel); |
124 | 131 |
void aosIOChannelOutputDisable(AosIOChannel* channel); |
125 | 132 |
#ifdef __cplusplus |
Also available in: Unified diff