mFrame
載入中...
搜尋中...
無符合項目
SerialPortOutputStream.h
1
8#ifndef HAL_F3E849F4_8586_4E91_A6EA_D93B8BD6D448
9#define HAL_F3E849F4_8586_4E91_A6EA_D93B8BD6D448
10
11/* ***************************************************************************************
12 * Include
13 */
14#include "./mframe.h"
15
16//----------------------------------------------------------------------------------------
17#include "./../serial/UART.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace hal::serial {
23 class SerialPortOutputStream;
24} // namespace hal::serial
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
36 /* *************************************************************************************
37 * Variable
38 */
39 private:
40 hal::serial::UART& vBase;
41
42 /* *************************************************************************************
43 * Abstract Method
44 */
45
46 /* *************************************************************************************
47 * Construct Method
48 */
49 public:
56
61 virtual ~SerialPortOutputStream(void) override;
62
63 /* *************************************************************************************
64 * Operator Method
65 */
66
67 /* *************************************************************************************
68 * Public Method <Override> - mframe::io::OutputStream
69 */
70 public:
71 virtual bool abortWrite(void) override;
72
73 virtual bool writeBusy(void) override;
74
75 virtual bool write(mframe::lang::Readable& readable,
76 void* attachment,
77 mframe::io::CompletionHandler<int>* handler) override;
78
79 /* *************************************************************************************
80 * Public Method <Override> - hal::serial::UARTEventTransfer
81 */
82 public:
83 virtual bool onTransfer(uint8& data) override;
84
85 /* *************************************************************************************
86 * Public Method
87 */
88
89 /* *************************************************************************************
90 * Protected Method
91 */
92
93 /* *************************************************************************************
94 * Private Method
95 */
96
97 /* *************************************************************************************
98 * Static Variable
99 */
100
101 /* *************************************************************************************
102 * Static Method
103 */
104};
105
106/* ***************************************************************************************
107 * End of file
108 */
109
110#endif /* HAL_F3E849F4_8586_4E91_A6EA_D93B8BD6D448 */
序列埠輸出串流。
Definition SerialPortOutputStream.h:35
virtual bool write(mframe::lang::Readable &readable, void *attachment, mframe::io::CompletionHandler< int > *handler) override
寫入
virtual ~SerialPortOutputStream(void) override
Destroy the Serial Port Output Stream object.
virtual bool onTransfer(uint8 &data) override
傳輸緩衝空事件。
SerialPortOutputStream(hal::serial::UART &base)
Construct a new Serial Port Output Stream object.
virtual bool abortWrite(void) override
取消當前的輸出串流寫入
virtual bool writeBusy(void) override
取得輸出串流是否為寫入忙碌
Definition SimpleOutputStream.h:33
Definition IIC.h:25
[Interface]同步非同步收發器接收事件。
Definition UARTEventTransfer.h:34
[Interface]硬體抽象層,同步非同步收發器。
Definition UART.h:36
Definition CompletionHandler.h:32
Definition Readable.h:31