2017-09-27 13:25:39 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <util/list.h>
|
|
|
|
|
|
|
|
/***********************************
|
|
|
|
rb2/proxy.h
|
|
|
|
|
|
|
|
RegisteredBus2 Interface Definitions
|
|
|
|
|
|
|
|
Paketorientierte Kommunikation via Serielle Verbindungen mit Adressierung
|
|
|
|
|
|
|
|
***********************************/
|
|
|
|
|
|
|
|
|
|
|
|
struct _rb2_proxy;
|
|
|
|
typedef struct _rb2_proxy RB2_PROXY;
|
2017-11-13 13:15:19 +01:00
|
|
|
typedef struct _rb2_proxy rb2_proxy_t;
|
|
|
|
|
2017-09-27 13:25:39 +02:00
|
|
|
#define RB2_PROXY(ptr) ((RB2_PROXY*)(ptr))
|
|
|
|
|
|
|
|
|
|
|
|
struct _rb2_proxy
|
|
|
|
{
|
|
|
|
list_t list;
|
|
|
|
|
|
|
|
uint8_t id;
|
|
|
|
uint8_t (*register_proc)(RB2_REGISTER *reg,RB2_TELEGRAM *telegram);
|
|
|
|
register_node_proc
|
|
|
|
register_node_proc;
|
|
|
|
|
|
|
|
list_t segments;
|
|
|
|
};
|
|
|
|
|