Tiny protocol  0.9.0
Tiny communication protocol for microcontrollers
Classes | Typedefs | Functions
tiny_fd.h File Reference

Tiny Protocol Full Duplex API. More...

#include <stdint.h>
#include "proto/hdlc/tiny_hdlc.h"
#include "proto/hal/tiny_types.h"
Include dependency graph for tiny_fd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tiny_fd_init_t_
 

Typedefs

typedef struct tiny_fd_data_t * tiny_fd_handle_t
 
typedef struct tiny_fd_init_t_ tiny_fd_init_t
 

Functions

int tiny_fd_init (tiny_fd_handle_t *handle, tiny_fd_init_t *init)
 Initialized communication for Tiny Full Duplex protocol. More...
 
void tiny_fd_close (tiny_fd_handle_t handle)
 stops Tiny Full Duplex state machine More...
 
int tiny_fd_run_tx (tiny_fd_handle_t handle, uint16_t timeout)
 runs tx processing for specified period of time. More...
 
int tiny_fd_run_rx (tiny_fd_handle_t handle, uint16_t timeout)
 runs rx processing for specified period of time. More...
 
int tiny_fd_send (tiny_fd_handle_t handle, const void *buf, int len)
 Sends userdata over full-duplex protocol. More...
 
int tiny_fd_buffer_size_by_mtu (int mtu, int max_tx_frames)
 

Detailed Description

Tiny Protocol Full Duplex API.

This is Tiny Half-Duplex protocol implementation for microcontrollers. It is built on top of Tiny Protocol (tiny_layer2.c)

Implements full duplex asynchronous ballanced mode (ABM)