mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
22 0
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
void Man_Receive_Config(char *port, char rxpin);
Description The function prepares PIC for receiving signal. You need to specify the port and
rxpin (0–7) of input signal. In case of multiple errors on reception, you should call
Man_Receive_Init once again to enable synchronization.
Example
Man_Receive_Config(&PORTD, 6);
Man_Receive_Config
Prototype
void Man_Receive_Init(char *port);
Description The function prepares PIC for receiving signal. You need to specify the port; rxpin is
pin 6 by default. In case of multiple errors on reception, you should call
Man_Receive_Init once again to enable synchronization.
Example
Man_Receive_Init(&PORTD);
Man_Receive_Init
Prototype
void Man_Receive(char *error);
Returns Returns one byte from signal.
Description Function extracts one byte from signal. If signal format does not match the expected,
error flag will be set to 255.
Requires To use this function, you must first prepare the PIC for receiving. See
Man_Receive_Config or Man_Receive_Init.
Example
temp = Man_Receive(error);
if (error) { ...
/* error handling */
}
Man_Receive