123
Fork of LG by
DeviceServicePort.h@197:7a05523bf588, 2016-10-19 (annotated)
- Committer:
- Kovalev_D
- Date:
- Wed Oct 19 10:55:05 2016 +0000
- Revision:
- 197:7a05523bf588
- Parent:
- 182:2bd8ec44998f
modul
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Diletant | 149:abbf7663d27d | 1 | #ifndef __DEVICE_SERVICE_PORT_H__ |
Diletant | 149:abbf7663d27d | 2 | #define __DEVICE_SERVICE_PORT_H__ |
Diletant | 149:abbf7663d27d | 3 | |
Diletant | 182:2bd8ec44998f | 4 | //User port typedefs |
Diletant | 182:2bd8ec44998f | 5 | typedef struct _DeviceServicePortSettings { |
Diletant | 182:2bd8ec44998f | 6 | uint32_t baud; //Baud rate |
Diletant | 182:2bd8ec44998f | 7 | } DeviceServicePortSettings; |
Diletant | 182:2bd8ec44998f | 8 | |
Diletant | 182:2bd8ec44998f | 9 | typedef struct _DeviceServicePortState { |
Diletant | 182:2bd8ec44998f | 10 | uint32_t baud; //Baud rate |
Diletant | 182:2bd8ec44998f | 11 | } DeviceServicePortState; |
Diletant | 182:2bd8ec44998f | 12 | |
Diletant | 182:2bd8ec44998f | 13 | typedef struct _DeviceServicePort { |
Diletant | 182:2bd8ec44998f | 14 | DeviceServicePortSettings settings; |
Diletant | 182:2bd8ec44998f | 15 | DeviceServicePortState state; |
Diletant | 182:2bd8ec44998f | 16 | } DeviceServicePort; |
Diletant | 182:2bd8ec44998f | 17 | |
Diletant | 167:bedc0a9d559a | 18 | void InitServicePortDefaultSettings(void); |
Diletant | 167:bedc0a9d559a | 19 | void InitServicePortState(void); |
Diletant | 167:bedc0a9d559a | 20 | void DeviceStartServicePort(void); |
Diletant | 167:bedc0a9d559a | 21 | |
Diletant | 149:abbf7663d27d | 22 | void Concole(void); |
Diletant | 156:e68ee0bcdcda | 23 | int ReadConcole(void); |
Diletant | 156:e68ee0bcdcda | 24 | void WriteConcole(void); |
Diletant | 149:abbf7663d27d | 25 | #endif /* __DEVICE_SERVICE_PORT_H__ */ |