22#ifndef PROTOCORE_POWERLINK_H
23#define PROTOCORE_POWERLINK_H
27#if PROTOCORE_ENABLE_POWERLINK
37#define EPL_MSG_SOC 0x01
38#define EPL_MSG_PREQ 0x03
39#define EPL_MSG_PRES 0x04
40#define EPL_MSG_SOA 0x05
41#define EPL_MSG_ASND 0x06
42#define EPL_NODE_BROADCAST 0xFF
43#define EPL_NODE_MN 0xF0
51 const uint8_t *payload;
61 const uint8_t *payload;
100 const uint8_t *payload;
111 const uint8_t *payload;
120 const uint8_t *frame;
164 PowerlinkBuildArgs build_args;
165 PowerlinkSocArgs soc_args;
166 PowerlinkPreqArgs preq_args;
167 PowerlinkPresArgs pres_args;
168 PowerlinkSoaArgs soa_args;
169 PowerlinkAsndArgs asnd_args;
170 PowerlinkParseArgs parse_args;
176extern PowerlinkVars PowerlinkV;
181 void (*
const build)(uint8_t *work);
182 void (*
const soc)(uint8_t *work);
183 void (*
const preq)(uint8_t *work);
184 void (*
const pres)(uint8_t *work);
185 void (*
const soa)(uint8_t *work);
186 void (*
const asnd)(uint8_t *work);
187 void (*
const parse)(uint8_t *work);
192void protocore_powerlink_build(uint8_t *work);
193void protocore_powerlink_soc(uint8_t *work);
194void protocore_powerlink_preq(uint8_t *work);
195void protocore_powerlink_pres(uint8_t *work);
196void protocore_powerlink_soa(uint8_t *work);
197void protocore_powerlink_asnd(uint8_t *work);
198void protocore_powerlink_parse(uint8_t *work);
204static const PowerlinkNs Powerlink __attribute__((unused)) = {
205 .build = protocore_powerlink_build,
206 .soc = protocore_powerlink_soc,
207 .preq = protocore_powerlink_preq,
208 .pres = protocore_powerlink_pres,
209 .soa = protocore_powerlink_soa,
210 .asnd = protocore_powerlink_asnd,
211 .parse = protocore_powerlink_parse,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS