80 err_t send(channel_t *channel,
port_t to_port, uint8_t *data,
size_t data_size,
bool wait_for_ack =
false);
173 #endif //ARUNA_COMM_H
unsigned int get_speed()
Get the speed of the link to the other hosts in bits per second.
err_t register_channel(channel_t *channel)
Register a new communication endpoint.
status_t get_status()
Get the running status of com.
err_t send(channel_t *channel, port_t to_port, uint8_t *data, size_t data_size, bool wait_for_ack)
Send data.
void get_candidate_drivers(char *buffer[])
get all the comm driver candidates
link_t get_link_type()
Get connection hardware type.
err_t unregister_candidate_driver(Link *driver)
unregister a driver to be a comdiver candidate
err_t stop()
Stop the communication, free all queue's, channels and buffers.
err_t resume()
resume all communication.
Link * driver
stores the driver.
err_t incoming_connection(uint8_t *package, uint8_t package_size)
Interrupt incomming connection handeler.
bool is_connected()
Get the status of the comm link.
err_t register_candidate_driver(Link *driver)
register a driver to be a comm driver candidate.
err_t start()
Start new communication.
err_t pause()
pause all communication.
err_t get_channels(char *buffer)
get all names of the channels currently registered
err_t unregister_channel(channel_t &channel)
unregister an endpoint