Page MenuHomec4science

sbcp_host.h
No OneTemporary

File Metadata

Created
Fri, Nov 22, 17:49

sbcp_host.h

#ifndef SBCP_MASTER_SBCP_HOST_H_
#define SBCP_MASTER_SBCP_HOST_H_
#include "packet.h"
#define SBCP_MAX_PAYLOAD_SIZE (SBCP_PACKET_SIZE - SBCP_HEADER_SIZE )
//init all data
void init_sbcp_host();
//main function to process the host rx state machine
void sbcp_process_host_rx();
//main function to process the host tx
void sbcp_process_host_tx();
/**
* Gets the next available received packet.
* \return 0 if no packet available or address to the next available packet
*/
volatile packet_mdata * next_host_packet();
/**
* Releases the received packet. data should will be considered unsafe.
*/
void release_host_packet(volatile packet_mdata *);
#endif //SBCP_MASTER_SBCP_HOST_RX_H_

Event Timeline