Datasheet
Man_Send
Man_Synchro
317
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void Man_Send(unsigned char tr_data);
Returns Nothing.
Description
Sends one byte.
Parameters :
-
tr_data: data to be sent
Note: Baud rate used is 500 bps.
Requires
To use this function, the user must prepare the MCU for sending. See
Man_Send_Init.
Example
unsigned char msg;
...
Man_Send(msg);
Prototype
unsigned char Man_Synchro();
Returns
- 255 - if synchronization was not successful.
- Half of the manchester bit length, given in multiples of 10us - upon
successful synchronization.
Description Measures half of the manchester bit length with 10us resolution.
Requires
To use this function, you must first prepare the MCU for receiving. See
Man_Receive_Init.
Example
unsigned int man__half_bit_len;
...
man__half_bit_len = Man_Synchro();