APP 4
Dependencies: mbed CRC16 mbed-rtos
Manchester.h
- Committer:
- vinbel93
- Date:
- 2016-02-22
- Revision:
- 17:8d8c33bdcaf5
- Parent:
- 13:195826b8c61b
- Child:
- 20:f0932bfe09ed
File content as of revision 17:8d8c33bdcaf5:
#pragma once inline bool encode(bool bit, bool clock) { return (bit == clock); } inline bool decode(bool manchester1, bool manchester2) { bool value; if (manchester1 == false && manchester2 == true) { value = false; } else if (manchester1 == true && manchester2 == false) { value = true; } else { _readDephased(); } }