libicsc  1.0.0
 All Data Structures Files Functions Modules
Functions
Broadcast

Functions used for broadcasting data to all remote stations. More...

Functions

int icsc_broadcast_array (icsc_ptr icsc, char command, uint8_t len, const char *data)
 Send an array of data (or struct as if it were an array) to all stations. More...
 
int icsc_broadcast_string (icsc_ptr icsc, char command, const char *str)
 Send a text string to all remote stations. More...
 
int icsc_broadcast_long (icsc_ptr icsc, char command, int32_t data)
 Send a 32-bit integer to all remote stations. More...
 
int icsc_broadcast_int (icsc_ptr icsc, char command, int16_t data)
 Send a 16-bit integer to all remote stations. More...
 
int icsc_broadcast_char (icsc_ptr icsc, char command, int8_t data)
 Send an 8-bit integer to all remote stations. More...
 

Detailed Description

Functions used for broadcasting data to all remote stations.

Function Documentation

int icsc_broadcast_array ( icsc_ptr  icsc,
char  command,
uint8_t  len,
const char *  data 
)

Send an array of data (or struct as if it were an array) to all stations.

Parameters
icscPointer to an icsc context created using icsc_init() or icsc_init_de()
commandCommand character to trigger at the remote station
lenThe length of the array or size of the struct
dataThe data to send
Returns
0 on success, -1 on error.
int icsc_broadcast_char ( icsc_ptr  icsc,
char  command,
int8_t  data 
)

Send an 8-bit integer to all remote stations.

Parameters
icscPointer to an icsc context created using icsc_init() or icsc_init_de()
commandCommand character to trigger at the remote station
dataThe integer to send
Returns
0 on success, -1 on error.
int icsc_broadcast_int ( icsc_ptr  icsc,
char  command,
int16_t  data 
)

Send a 16-bit integer to all remote stations.

Parameters
icscPointer to an icsc context created using icsc_init() or icsc_init_de()
commandCommand character to trigger at the remote station
dataThe integer to send
Returns
0 on success, -1 on error.
int icsc_broadcast_long ( icsc_ptr  icsc,
char  command,
int32_t  data 
)

Send a 32-bit integer to all remote stations.

Parameters
icscPointer to an icsc context created using icsc_init() or icsc_init_de()
commandCommand character to trigger at the remote station
dataThe integer to send
Returns
0 on success, -1 on error.
int icsc_broadcast_string ( icsc_ptr  icsc,
char  command,
const char *  str 
)

Send a text string to all remote stations.

Parameters
icscPointer to an icsc context created using icsc_init() or icsc_init_de()
commandCommand character to trigger at the remote station
strThe string to send
Returns
0 on success, -1 on error.