Functions used for initializing and finisging with an ICSC instance.
More...
|
icsc_ptr | icsc_init_de (const char *uart, unsigned long baud, uint8_t station, int de) |
| Create a new ICSC context, initialize the hardware, and start listening for messages. More...
|
|
icsc_ptr | icsc_init (const char *uart, unsigned long baud, uint8_t station) |
| Create a new ICSC context, initialize the hardware, and start listening for messages. More...
|
|
int | icsc_close (icsc_ptr icsc) |
| Close an ICSC instance freeing the memory. Terminates all communication. More...
|
|
Functions used for initializing and finisging with an ICSC instance.
Close an ICSC instance freeing the memory. Terminates all communication.
- Parameters
-
- Returns
- 0 on success or -1 on error.
icsc_ptr icsc_init |
( |
const char * |
uart, |
|
|
unsigned long |
baud, |
|
|
uint8_t |
station |
|
) |
| |
Create a new ICSC context, initialize the hardware, and start listening for messages.
- Parameters
-
uart | The path name of the UART device to communicate with (e.g., /dev/ttyAMA0) |
baud | The baud rate symbolic name in the form Bxxxx (e.g., B115200) |
station | The station number of this device |
- Returns
- The pointer to the newly created context.
icsc_ptr icsc_init_de |
( |
const char * |
uart, |
|
|
unsigned long |
baud, |
|
|
uint8_t |
station, |
|
|
int |
de |
|
) |
| |
Create a new ICSC context, initialize the hardware, and start listening for messages.
- Parameters
-
uart | The path name of the UART device to communicate with (e.g., /dev/ttyAMA0) |
baud | The baud rate symbolic name in the form Bxxxx (e.g., B115200) |
station | The station number of this device |
de | The GPIO number to use for the RS-485 DE pin. |
- Returns
- The pointer to the newly created context.