csp.h
Go to the documentation of this file.
169 int csp_transaction(uint8_t prio, uint8_t dest, uint8_t port, uint32_t timeout, void *outbuf, int outlen, void *inbuf, int inlen);
182 int csp_transaction_persistent(csp_conn_t *conn, uint32_t timeout, void *outbuf, int outlen, void *inbuf, int inlen);
204 int csp_sendto(uint8_t prio, uint8_t dest, uint8_t dport, uint8_t src_port, uint32_t opts, csp_packet_t *packet, uint32_t timeout);
215 int csp_sendto_reply(csp_packet_t * request_packet, csp_packet_t * reply_packet, uint32_t opts, uint32_t timeout);
229 csp_conn_t *csp_connect(uint8_t prio, uint8_t dest, uint8_t dport, uint32_t timeout, uint32_t opts);
308 int csp_bridge_start(unsigned int task_stack_size, unsigned int task_priority, csp_iface_t * _if_a, csp_iface_t * _if_b);
362 int csp_sfp_send_own_memcpy(csp_conn_t * conn, void * data, int totalsize, int mtu, uint32_t timeout, void * (*memcpyfcn)(void *, const void *, size_t));
383 int csp_sfp_recv_fp(csp_conn_t * conn, void ** dataout, int * datasize, uint32_t timeout, csp_packet_t * first_packet);
521 typedef void (*csp_debug_hook_func_t)(csp_debug_level_t level, const char *format, va_list args);
int csp_send(csp_conn_t *conn, csp_packet_t *packet, uint32_t timeout)
int csp_transaction(uint8_t prio, uint8_t dest, uint8_t port, uint32_t timeout, void *outbuf, int outlen, void *inbuf, int inlen)
csp_packet_t * csp_read(csp_conn_t *conn, uint32_t timeout)
Definition: csp_types.h:190
char * csp_get_hostname(void)
void(* csp_debug_hook_func_t)(csp_debug_level_t level, const char *format, va_list args)
Definition: csp.h:521
void csp_debug_hook_set(csp_debug_hook_func_t f)
int csp_conn_sport(csp_conn_t *conn)
int csp_bridge_start(unsigned int task_stack_size, unsigned int task_priority, csp_iface_t *_if_a, csp_iface_t *_if_b)
void csp_cmp_set_memcpy(csp_memcpy_fnc_t fnc)
int csp_sfp_send_own_memcpy(csp_conn_t *conn, void *data, int totalsize, int mtu, uint32_t timeout, void *(*memcpyfcn)(void *, const void *, size_t))
char * csp_get_model(void)
void csp_buffer_print_table(void)
int csp_conn_dport(csp_conn_t *conn)
int csp_conn_dst(csp_conn_t *conn)
void csp_shutdown(uint8_t node)
int csp_sfp_recv(csp_conn_t *conn, void **dataout, int *datasize, uint32_t timeout)
void csp_rdp_get_opt(unsigned int *window_size, unsigned int *conn_timeout_ms, unsigned int *packet_timeout_ms, unsigned int *delayed_acks, unsigned int *ack_timeout, unsigned int *ack_delay_count)
int csp_sfp_send(csp_conn_t *conn, void *data, int totalsize, int mtu, uint32_t timeout)
int csp_route_start_task(unsigned int task_stack_size, unsigned int priority)
void csp_reboot(uint8_t node)
int csp_sendto_reply(csp_packet_t *request_packet, csp_packet_t *reply_packet, uint32_t opts, uint32_t timeout)
csp_packet_t * csp_promisc_read(uint32_t timeout)
int csp_init(uint8_t my_node_address)
int csp_close(csp_conn_t *conn)
csp_memptr_t(* csp_memcpy_fnc_t)(csp_memptr_t, const csp_memptr_t, size_t)
Definition: csp.h:513
int csp_promisc_enable(unsigned int buf_size)
void csp_buf_free(uint8_t node, uint32_t timeout)
csp_socket_t * csp_socket(uint32_t opts)
void csp_ps(uint8_t node, uint32_t timeout)
uint8_t csp_get_address(void)
int csp_hmac_set_key(char *key, uint32_t keylen)
void csp_set_revision(char *revision)
void csp_memfree(uint8_t node, uint32_t timeout)
csp_conn_t * csp_connect(uint8_t prio, uint8_t dest, uint8_t dport, uint32_t timeout, uint32_t opts)
void csp_promisc_disable(void)
void csp_set_address(uint8_t addr)
int csp_listen(csp_socket_t *socket, size_t conn_queue_length)
void csp_conn_print_table(void)
csp_conn_t * csp_accept(csp_socket_t *socket, uint32_t timeout)
int csp_send_prio(uint8_t prio, csp_conn_t *conn, csp_packet_t *packet, uint32_t timeout)
int csp_sendto(uint8_t prio, uint8_t dest, uint8_t dport, uint8_t src_port, uint32_t opts, csp_packet_t *packet, uint32_t timeout)
int csp_conn_src(csp_conn_t *conn)
void csp_rdp_set_opt(unsigned int window_size, unsigned int conn_timeout_ms, unsigned int packet_timeout_ms, unsigned int delayed_acks, unsigned int ack_timeout, unsigned int ack_delay_count)
int csp_route_work(uint32_t timeout)
void csp_service_handler(csp_conn_t *conn, csp_packet_t *packet)
csp_packet_t * csp_recvfrom(csp_socket_t *socket, uint32_t timeout)
int csp_xtea_set_key(char *key, uint32_t keylen)
int csp_sfp_recv_fp(csp_conn_t *conn, void **dataout, int *datasize, uint32_t timeout, csp_packet_t *first_packet)
int csp_transaction_persistent(csp_conn_t *conn, uint32_t timeout, void *outbuf, int outlen, void *inbuf, int inlen)
char * csp_get_revision(void)
Definition: csp_types.h:174
void csp_uptime(uint8_t node, uint32_t timeout)
int csp_bind(csp_socket_t *socket, uint8_t port)
int csp_ping(uint8_t node, uint32_t timeout, unsigned int size, uint8_t conn_options)
void csp_set_model(char *model)
void csp_set_hostname(char *hostname)
void csp_ping_noreply(uint8_t node)
int csp_conn_flags(csp_conn_t *conn)