custom_protocols
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
custom_protocols [2019/01/09 12:35] – [The examples of custom protocols] emozolyak | custom_protocols [2020/01/02 10:44] – [readRegister] emozolyak | ||
---|---|---|---|
Line 108: | Line 108: | ||
These parameters are passed in order to be able to correctly and fully compose a request according to the protocol. | These parameters are passed in order to be able to correctly and fully compose a request according to the protocol. | ||
- | Для передачи запроса устройству используются функции | + | To send a request to the device //sendBytes// and //sendString// are used. To read the reply //readBytes// and //readString// respectively. Their overview is given in the following table: |
- | На вход | + | ^ Function ^ Arguments ^ Returns ^ |
- | На вход | + | |sendBytes |
- | На вход | + | |sendString |
- | На вход | + | |readBytes |
- | Если необходимо закрыть соединение | + | |readString |
- | Если необходимо сделать паузу, то можно вызвать функцию | + | To close connection (in case of many errors), // |
+ | |||
+ | To make a delay, //sleep// function can be used. Its only argument is time in microseconds, | ||
Для работы с битами можно использовать библиотеку bitop [4]. | Для работы с битами можно использовать библиотеку bitop [4]. |
custom_protocols.txt · Last modified: 2023/02/21 17:52 by emozolyak