mFrame
載入中...
搜尋中...
無符合項目
SPISlave.h
1
7#ifndef MFRAME_391452F9_B23F_4F51_AC71_46CB083033A3
8#define MFRAME_391452F9_B23F_4F51_AC71_46CB083033A3
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../serial/SPI.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace hal::serial {
23 struct SPISlave;
24} // namespace hal::serial
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
39 /* *************************************************************************************
40 * Class/Interface/Struct/Enum
41 */
42 struct EventSelect;
43
44 /* *************************************************************************************
45 * Method
46 */
47
53 virtual hal::serial::SPI& getSPI(void) abstract;
54
60 virtual void setEventSelect(SPISlave::EventSelect* event) abstract;
61};
62
72 /* *************************************************************************************
73 * Method
74 */
75
82 virtual bool onSelectActive(void) abstract;
83
87 virtual void onSelectInactive(void) abstract;
88};
89
90/* ***************************************************************************************
91 * End of file
92 */
93
94#endif /* MFRAME_391452F9_B23F_4F51_AC71_46CB083033A3 */
Definition IIC.h:22
[Interface] SPI基礎介面
Definition SPI.h:38
[Interface] SPI片選事件監聽器
Definition SPISlave.h:71
virtual bool onSelectActive(void) override
當片選啟用時調用
virtual void onSelectInactive(void) override
當片選停用時調用
[Interface] SPI從端設備介面
Definition SPISlave.h:38
virtual hal::serial::SPI & getSPI(void) override
取得SPI基礎介面參考
virtual void setEventSelect(SPISlave::EventSelect *event) override
設定片選事件監聽器