Datasheet

Man_Receive
Man_Send_Init
316
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
unsigned char Man_Receive(unsigned char *error);
Returns A byte read from the incoming signal.
Description
The function extracts one byte from incoming signal.
Parameters :
- error: error flag. If signal format does not match the expected, the
error flag will be set to non-zero.
Requires
To use this function, the user must prepare the MCU for receiving. See
Man_Receive_Init.
Example
unsigned char data = 0, error = 0;
...
data = Man_Receive(&error);
if (error)
{ /* error handling */ }
Prototype
void Man_Send_Init();
Returns Nothing.
Description The function configures Transmitter pin.
Requires
Global variables :
- MANTXPIN : Transmit line
-
MANTXPIN_Direction : Direction of the transmit pin
must be defined before using this function.
Example
// Initialize Transmitter:
sbit MANTXPIN at PORTB.B1;
sbit MANTXPIN_Direction at DDRB.B1;
...
Man_Send_Init();