User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
357
Man_Send
Man_Synchro
Prototype
void Man_Send(unsigned char tr_data);
Description Sends one byte.
Parameters - tr_data: data to be sent
Returns Nothing.
Requires To use this function, the user must prepare the MCU for sending. See Man_Send_Init routine.
Example
unsigned int msg;
...
Man_Send(msg);
Notes Baud rate used is 500 bps.
Prototype
unsigned int Man_Synchro();
Description Measures half of the manchester bit length with 10us resolution.
Parameters None.
Returns 0 - if synchronization was not successful.
Half of the manchester bit length, given in multiples of 10us - upon successful synchronization.
Requires To use this function, you must rst prepare the MCU for receiving. See Man_Receive_Init.
Example
unsigned int man__half_bit_len;
...
man__half_bit_len = Man_Synchro();
Notes None.