Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
c5c89915
Commit
c5c89915
authored
Mar 09, 2020
by
Maxime Perrotin
Browse files
Update configuration files
parent
bfda62a8
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
include/drivers/configuration/1553.h
View file @
c5c89915
...
@@ -13,8 +13,6 @@ extern "C" {
...
@@ -13,8 +13,6 @@ extern "C" {
typedef
asn1SccUint
__po_hi_c_Node_Addr_T
;
typedef
asn1SccUint
__po_hi_c_Node_Addr_T
;
flag
__po_hi_c_Node_Addr_T_Equal
(
const
__po_hi_c_Node_Addr_T
*
pVal1
,
const
__po_hi_c_Node_Addr_T
*
pVal2
);
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
);
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
);
#define ERR_NODE_ADDR_T 1
/**/
#define ERR_NODE_ADDR_T 1
/**/
...
@@ -24,7 +22,9 @@ typedef enum {
...
@@ -24,7 +22,9 @@ typedef enum {
__po_hi_c_mil1553b
=
1
__po_hi_c_mil1553b
=
1
}
__po_hi_c_Standard_T
;
}
__po_hi_c_Standard_T
;
flag
__po_hi_c_Standard_T_Equal
(
const
__po_hi_c_Standard_T
*
pVal1
,
const
__po_hi_c_Standard_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Standard_T_mil1553a __po_hi_c_mil1553a
#define __po_hi_c_Standard_T_mil1553b __po_hi_c_mil1553b
void
__po_hi_c_Standard_T_Initialize
(
__po_hi_c_Standard_T
*
pVal
);
void
__po_hi_c_Standard_T_Initialize
(
__po_hi_c_Standard_T
*
pVal
);
...
@@ -36,7 +36,10 @@ typedef enum {
...
@@ -36,7 +36,10 @@ typedef enum {
__po_hi_c_monitor
=
2
__po_hi_c_monitor
=
2
}
__po_hi_c_Mode_T
;
}
__po_hi_c_Mode_T
;
flag
__po_hi_c_Mode_T_Equal
(
const
__po_hi_c_Mode_T
*
pVal1
,
const
__po_hi_c_Mode_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Mode_T_controller __po_hi_c_controller
#define __po_hi_c_Mode_T_terminal __po_hi_c_terminal
#define __po_hi_c_Mode_T_monitor __po_hi_c_monitor
void
__po_hi_c_Mode_T_Initialize
(
__po_hi_c_Mode_T
*
pVal
);
void
__po_hi_c_Mode_T_Initialize
(
__po_hi_c_Mode_T
*
pVal
);
...
@@ -49,7 +52,11 @@ typedef enum {
...
@@ -49,7 +52,11 @@ typedef enum {
__po_hi_c_both
=
3
__po_hi_c_both
=
3
}
__po_hi_c_Bus_T
;
}
__po_hi_c_Bus_T
;
flag
__po_hi_c_Bus_T_Equal
(
const
__po_hi_c_Bus_T
*
pVal1
,
const
__po_hi_c_Bus_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Bus_T_none __po_hi_c_none
#define __po_hi_c_Bus_T_bus_a __po_hi_c_bus_a
#define __po_hi_c_Bus_T_bus_b __po_hi_c_bus_b
#define __po_hi_c_Bus_T_both __po_hi_c_both
void
__po_hi_c_Bus_T_Initialize
(
__po_hi_c_Bus_T
*
pVal
);
void
__po_hi_c_Bus_T_Initialize
(
__po_hi_c_Bus_T
*
pVal
);
...
@@ -57,7 +64,6 @@ void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
...
@@ -57,7 +64,6 @@ void __po_hi_c_Bus_T_Initialize(__po_hi_c_Bus_T* pVal);
flag
__po_hi_c_Bus_T_IsConstraintValid
(
const
__po_hi_c_Bus_T
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_Bus_T_IsConstraintValid
(
const
__po_hi_c_Bus_T
*
pVal
,
int
*
pErrCode
);
/*-- __po_hi_c_mil_1553_conf_t --------------------------------------------*/
/*-- __po_hi_c_mil_1553_conf_t --------------------------------------------*/
typedef
char
__po_hi_c_mil_1553_conf_t_devname
[
21
];
typedef
char
__po_hi_c_mil_1553_conf_t_devname
[
21
];
typedef
struct
{
typedef
struct
{
__po_hi_c_mil_1553_conf_t_devname
devname
;
__po_hi_c_mil_1553_conf_t_devname
devname
;
__po_hi_c_Standard_T
standard
;
__po_hi_c_Standard_T
standard
;
...
@@ -75,21 +81,18 @@ typedef struct {
...
@@ -75,21 +81,18 @@ typedef struct {
}
__po_hi_c_mil_1553_conf_t
;
}
__po_hi_c_mil_1553_conf_t
;
flag
__po_hi_c_mil_1553_conf_t_devname_Equal
(
const
__po_hi_c_mil_1553_conf_t_devname
val1
,
const
__po_hi_c_mil_1553_conf_t_devname
val2
);
flag
__po_hi_c_mil_1553_conf_t_Equal
(
const
__po_hi_c_mil_1553_conf_t
*
pVal1
,
const
__po_hi_c_mil_1553_conf_t
*
pVal2
);
void
__po_hi_c_mil_1553_conf_t_devname_Initialize
(
__po_hi_c_mil_1553_conf_t_devname
val
);
void
__po_hi_c_mil_1553_conf_t_devname_Initialize
(
__po_hi_c_mil_1553_conf_t_devname
val
);
void
__po_hi_c_mil_1553_conf_t_Initialize
(
__po_hi_c_mil_1553_conf_t
*
pVal
);
void
__po_hi_c_mil_1553_conf_t_Initialize
(
__po_hi_c_mil_1553_conf_t
*
pVal
);
#define ERR_MIL_1553_CONF_T 105
/**/
#define ERR_MIL_1553_CONF_T_DEVNAME 29
/**/
#define ERR_MIL_1553_CONF_T_DEVNAME 29
/**/
#define ERR_MIL_1553_CONF_T_STANDARD
36
/**/
#define ERR_MIL_1553_CONF_T_STANDARD
_2 43
/**/
#define ERR_MIL_1553_CONF_T_MODE
47
/**/
#define ERR_MIL_1553_CONF_T_MODE
_2 55
/**/
#define ERR_MIL_1553_CONF_T_BUS
58
/**/
#define ERR_MIL_1553_CONF_T_BUS
_2 67
/**/
#define ERR_MIL_1553_CONF_T_TERMADDR
6
9
/**/
#define ERR_MIL_1553_CONF_T_TERMADDR
_2
7
9
/**/
#define ERR_MIL_1553_CONF_T_BROADCAST 8
0
/**/
#define ERR_MIL_1553_CONF_T_BROADCAST 8
4
/**/
#define ERR_MIL_1553_CONF_T_RXBLOCK
87
/**/
#define ERR_MIL_1553_CONF_T_RXBLOCK
91
/**/
#define ERR_MIL_1553_CONF_T_TXBLOCK 9
4
/**/
#define ERR_MIL_1553_CONF_T_TXBLOCK 9
8
/**/
flag
__po_hi_c_mil_1553_conf_t_IsConstraintValid
(
const
__po_hi_c_mil_1553_conf_t
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_mil_1553_conf_t_IsConstraintValid
(
const
__po_hi_c_mil_1553_conf_t
*
pVal
,
int
*
pErrCode
);
...
@@ -107,4 +110,4 @@ flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t
...
@@ -107,4 +110,4 @@ flag __po_hi_c_mil_1553_conf_t_IsConstraintValid(const __po_hi_c_mil_1553_conf_t
#endif
#endif
#endif
#endif
\ No newline at end of file
include/drivers/configuration/asn1crt.h
View file @
c5c89915
This diff is collapsed.
Click to expand it.
include/drivers/configuration/bluetooth.h
View file @
c5c89915
...
@@ -16,7 +16,10 @@ typedef enum {
...
@@ -16,7 +16,10 @@ typedef enum {
__po_hi_c_d2M
=
2
__po_hi_c_d2M
=
2
}
__po_hi_c_Datarate_T
;
}
__po_hi_c_Datarate_T
;
flag
__po_hi_c_Datarate_T_Equal
(
const
__po_hi_c_Datarate_T
*
pVal1
,
const
__po_hi_c_Datarate_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Datarate_T_d250K __po_hi_c_d250K
#define __po_hi_c_Datarate_T_d1M __po_hi_c_d1M
#define __po_hi_c_Datarate_T_d2M __po_hi_c_d2M
void
__po_hi_c_Datarate_T_Initialize
(
__po_hi_c_Datarate_T
*
pVal
);
void
__po_hi_c_Datarate_T_Initialize
(
__po_hi_c_Datarate_T
*
pVal
);
...
@@ -28,13 +31,13 @@ typedef struct {
...
@@ -28,13 +31,13 @@ typedef struct {
}
__po_hi_c_Address_T
;
}
__po_hi_c_Address_T
;
flag
__po_hi_c_Address_T_Equal
(
const
__po_hi_c_Address_T
*
pVal1
,
const
__po_hi_c_Address_T
*
pVal2
);
void
__po_hi_c_Address_T_Initialize
(
__po_hi_c_Address_T
*
pVal
);
void
__po_hi_c_Address_T_Initialize
(
__po_hi_c_Address_T
*
pVal
);
#define ERR_ADDRESS_T 8
/**/
flag
__po_hi_c_Address_T_IsConstraintValid
(
const
__po_hi_c_Address_T
*
pVal
,
int
*
pErrCode
);
/*-- __po_hi_c_bluetooth_conf_t --------------------------------------------*/
/*-- __po_hi_c_bluetooth_conf_t --------------------------------------------*/
typedef
asn1SccUint
__po_hi_c_bluetooth_conf_t_channel
;
typedef
asn1SccUint
__po_hi_c_bluetooth_conf_t_channel
;
typedef
struct
{
typedef
struct
{
__po_hi_c_bluetooth_conf_t_channel
channel
;
__po_hi_c_bluetooth_conf_t_channel
channel
;
__po_hi_c_Datarate_T
datarate
;
__po_hi_c_Datarate_T
datarate
;
...
@@ -47,15 +50,13 @@ typedef struct {
...
@@ -47,15 +50,13 @@ typedef struct {
}
__po_hi_c_bluetooth_conf_t
;
}
__po_hi_c_bluetooth_conf_t
;
flag
__po_hi_c_bluetooth_conf_t_channel_Equal
(
const
__po_hi_c_bluetooth_conf_t_channel
*
pVal1
,
const
__po_hi_c_bluetooth_conf_t_channel
*
pVal2
);
flag
__po_hi_c_bluetooth_conf_t_Equal
(
const
__po_hi_c_bluetooth_conf_t
*
pVal1
,
const
__po_hi_c_bluetooth_conf_t
*
pVal2
);
void
__po_hi_c_bluetooth_conf_t_channel_Initialize
(
__po_hi_c_bluetooth_conf_t_channel
*
pVal
);
void
__po_hi_c_bluetooth_conf_t_channel_Initialize
(
__po_hi_c_bluetooth_conf_t_channel
*
pVal
);
void
__po_hi_c_bluetooth_conf_t_Initialize
(
__po_hi_c_bluetooth_conf_t
*
pVal
);
void
__po_hi_c_bluetooth_conf_t_Initialize
(
__po_hi_c_bluetooth_conf_t
*
pVal
);
#define ERR_BLUETOOTH_CONF_T_CHANNEL 14
/**/
#define ERR_BLUETOOTH_CONF_T 46
/**/
#define ERR_BLUETOOTH_CONF_T_DATARATE 21
/**/
#define ERR_BLUETOOTH_CONF_T_CHANNEL 15
/**/
#define ERR_BLUETOOTH_CONF_T_DATARATE_2 29
/**/
#define ERR_BLUETOOTH_CONF_T_ADDRESS_2 41
/**/
flag
__po_hi_c_bluetooth_conf_t_IsConstraintValid
(
const
__po_hi_c_bluetooth_conf_t
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_bluetooth_conf_t_IsConstraintValid
(
const
__po_hi_c_bluetooth_conf_t
*
pVal
,
int
*
pErrCode
);
extern
const
__po_hi_c_bluetooth_conf_t
crazyflie_default
;
extern
const
__po_hi_c_bluetooth_conf_t
crazyflie_default
;
...
@@ -73,4 +74,4 @@ extern const __po_hi_c_bluetooth_conf_t crazyflie_default;
...
@@ -73,4 +74,4 @@ extern const __po_hi_c_bluetooth_conf_t crazyflie_default;
#endif
#endif
#endif
#endif
\ No newline at end of file
include/drivers/configuration/ip.h
View file @
c5c89915
...
@@ -13,8 +13,6 @@ extern "C" {
...
@@ -13,8 +13,6 @@ extern "C" {
typedef
asn1SccUint
__po_hi_c_Port_T
;
typedef
asn1SccUint
__po_hi_c_Port_T
;
flag
__po_hi_c_Port_T_Equal
(
const
__po_hi_c_Port_T
*
pVal1
,
const
__po_hi_c_Port_T
*
pVal2
);
void
__po_hi_c_Port_T_Initialize
(
__po_hi_c_Port_T
*
pVal
);
void
__po_hi_c_Port_T_Initialize
(
__po_hi_c_Port_T
*
pVal
);
#define ERR_PORT_T 1
/**/
#define ERR_PORT_T 1
/**/
...
@@ -24,7 +22,9 @@ typedef enum {
...
@@ -24,7 +22,9 @@ typedef enum {
__po_hi_c_ipv6
=
1
__po_hi_c_ipv6
=
1
}
__po_hi_c_Version_T
;
}
__po_hi_c_Version_T
;
flag
__po_hi_c_Version_T_Equal
(
const
__po_hi_c_Version_T
*
pVal1
,
const
__po_hi_c_Version_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Version_T_ipv4 __po_hi_c_ipv4
#define __po_hi_c_Version_T_ipv6 __po_hi_c_ipv6
void
__po_hi_c_Version_T_Initialize
(
__po_hi_c_Version_T
*
pVal
);
void
__po_hi_c_Version_T_Initialize
(
__po_hi_c_Version_T
*
pVal
);
...
@@ -37,7 +37,6 @@ typedef char __po_hi_c_ip_conf_t_broadcast[41];
...
@@ -37,7 +37,6 @@ typedef char __po_hi_c_ip_conf_t_broadcast[41];
typedef
char
__po_hi_c_ip_conf_t_netmask
[
41
];
typedef
char
__po_hi_c_ip_conf_t_netmask
[
41
];
typedef
char
__po_hi_c_ip_conf_t_gateway
[
41
];
typedef
char
__po_hi_c_ip_conf_t_gateway
[
41
];
typedef
char
__po_hi_c_ip_conf_t_dns
[
41
];
typedef
char
__po_hi_c_ip_conf_t_dns
[
41
];
typedef
struct
{
typedef
struct
{
__po_hi_c_ip_conf_t_devname
devname
;
__po_hi_c_ip_conf_t_devname
devname
;
__po_hi_c_ip_conf_t_address
address
;
__po_hi_c_ip_conf_t_address
address
;
...
@@ -58,20 +57,6 @@ typedef struct {
...
@@ -58,20 +57,6 @@ typedef struct {
}
__po_hi_c_ip_conf_t
;
}
__po_hi_c_ip_conf_t
;
flag
__po_hi_c_ip_conf_t_devname_Equal
(
const
__po_hi_c_ip_conf_t_devname
val1
,
const
__po_hi_c_ip_conf_t_devname
val2
);
flag
__po_hi_c_ip_conf_t_address_Equal
(
const
__po_hi_c_ip_conf_t_address
val1
,
const
__po_hi_c_ip_conf_t_address
val2
);
flag
__po_hi_c_ip_conf_t_broadcast_Equal
(
const
__po_hi_c_ip_conf_t_broadcast
val1
,
const
__po_hi_c_ip_conf_t_broadcast
val2
);
flag
__po_hi_c_ip_conf_t_netmask_Equal
(
const
__po_hi_c_ip_conf_t_netmask
val1
,
const
__po_hi_c_ip_conf_t_netmask
val2
);
flag
__po_hi_c_ip_conf_t_gateway_Equal
(
const
__po_hi_c_ip_conf_t_gateway
val1
,
const
__po_hi_c_ip_conf_t_gateway
val2
);
flag
__po_hi_c_ip_conf_t_dns_Equal
(
const
__po_hi_c_ip_conf_t_dns
val1
,
const
__po_hi_c_ip_conf_t_dns
val2
);
flag
__po_hi_c_ip_conf_t_Equal
(
const
__po_hi_c_ip_conf_t
*
pVal1
,
const
__po_hi_c_ip_conf_t
*
pVal2
);
void
__po_hi_c_ip_conf_t_devname_Initialize
(
__po_hi_c_ip_conf_t_devname
val
);
void
__po_hi_c_ip_conf_t_devname_Initialize
(
__po_hi_c_ip_conf_t_devname
val
);
void
__po_hi_c_ip_conf_t_address_Initialize
(
__po_hi_c_ip_conf_t_address
val
);
void
__po_hi_c_ip_conf_t_address_Initialize
(
__po_hi_c_ip_conf_t_address
val
);
void
__po_hi_c_ip_conf_t_broadcast_Initialize
(
__po_hi_c_ip_conf_t_broadcast
val
);
void
__po_hi_c_ip_conf_t_broadcast_Initialize
(
__po_hi_c_ip_conf_t_broadcast
val
);
...
@@ -80,14 +65,15 @@ void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway val);
...
@@ -80,14 +65,15 @@ void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway val);
void
__po_hi_c_ip_conf_t_dns_Initialize
(
__po_hi_c_ip_conf_t_dns
val
);
void
__po_hi_c_ip_conf_t_dns_Initialize
(
__po_hi_c_ip_conf_t_dns
val
);
void
__po_hi_c_ip_conf_t_Initialize
(
__po_hi_c_ip_conf_t
*
pVal
);
void
__po_hi_c_ip_conf_t_Initialize
(
__po_hi_c_ip_conf_t
*
pVal
);
#define ERR_IP_CONF_T 81
/**/
#define ERR_IP_CONF_T_DEVNAME 15
/**/
#define ERR_IP_CONF_T_DEVNAME 15
/**/
#define ERR_IP_CONF_T_ADDRESS 22
/**/
#define ERR_IP_CONF_T_ADDRESS 22
/**/
#define ERR_IP_CONF_T_BROADCAST 29
/**/
#define ERR_IP_CONF_T_BROADCAST 29
/**/
#define ERR_IP_CONF_T_NETMASK 36
/**/
#define ERR_IP_CONF_T_NETMASK 36
/**/
#define ERR_IP_CONF_T_GATEWAY 43
/**/
#define ERR_IP_CONF_T_GATEWAY 43
/**/
#define ERR_IP_CONF_T_DNS 50
/**/
#define ERR_IP_CONF_T_DNS 50
/**/
#define ERR_IP_CONF_T_VERSION
57
/**/
#define ERR_IP_CONF_T_VERSION
_2 64
/**/
#define ERR_IP_CONF_T_PORT
68
/**/
#define ERR_IP_CONF_T_PORT
_2 76
/**/
flag
__po_hi_c_ip_conf_t_IsConstraintValid
(
const
__po_hi_c_ip_conf_t
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_ip_conf_t_IsConstraintValid
(
const
__po_hi_c_ip_conf_t
*
pVal
,
int
*
pErrCode
);
extern
const
__po_hi_c_ip_conf_t
localhost1
;
extern
const
__po_hi_c_ip_conf_t
localhost1
;
...
@@ -106,4 +92,4 @@ extern const __po_hi_c_ip_conf_t localhost2;
...
@@ -106,4 +92,4 @@ extern const __po_hi_c_ip_conf_t localhost2;
#endif
#endif
#endif
#endif
\ No newline at end of file
include/drivers/configuration/serial.h
View file @
c5c89915
...
@@ -19,7 +19,13 @@ typedef enum {
...
@@ -19,7 +19,13 @@ typedef enum {
__po_hi_c_b230400
=
5
__po_hi_c_b230400
=
5
}
__po_hi_c_Baudrate_T
;
}
__po_hi_c_Baudrate_T
;
flag
__po_hi_c_Baudrate_T_Equal
(
const
__po_hi_c_Baudrate_T
*
pVal1
,
const
__po_hi_c_Baudrate_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Baudrate_T_b9600 __po_hi_c_b9600
#define __po_hi_c_Baudrate_T_b19200 __po_hi_c_b19200
#define __po_hi_c_Baudrate_T_b38400 __po_hi_c_b38400
#define __po_hi_c_Baudrate_T_b57600 __po_hi_c_b57600
#define __po_hi_c_Baudrate_T_b115200 __po_hi_c_b115200
#define __po_hi_c_Baudrate_T_b230400 __po_hi_c_b230400
void
__po_hi_c_Baudrate_T_Initialize
(
__po_hi_c_Baudrate_T
*
pVal
);
void
__po_hi_c_Baudrate_T_Initialize
(
__po_hi_c_Baudrate_T
*
pVal
);
...
@@ -30,7 +36,9 @@ typedef enum {
...
@@ -30,7 +36,9 @@ typedef enum {
__po_hi_c_odd
=
1
__po_hi_c_odd
=
1
}
__po_hi_c_Parity_T
;
}
__po_hi_c_Parity_T
;
flag
__po_hi_c_Parity_T_Equal
(
const
__po_hi_c_Parity_T
*
pVal1
,
const
__po_hi_c_Parity_T
*
pVal2
);
// please use the following macros to avoid breaking code.
#define __po_hi_c_Parity_T_even __po_hi_c_even
#define __po_hi_c_Parity_T_odd __po_hi_c_odd
void
__po_hi_c_Parity_T_Initialize
(
__po_hi_c_Parity_T
*
pVal
);
void
__po_hi_c_Parity_T_Initialize
(
__po_hi_c_Parity_T
*
pVal
);
...
@@ -42,7 +50,6 @@ typedef asn1SccUint __po_hi_c_serial_conf_t_bits;
...
@@ -42,7 +50,6 @@ typedef asn1SccUint __po_hi_c_serial_conf_t_bits;
typedef
asn1SccUint
__po_hi_c_serial_conf_t_sending_wait
;
typedef
asn1SccUint
__po_hi_c_serial_conf_t_sending_wait
;
typedef
struct
{
typedef
struct
{
__po_hi_c_serial_conf_t_devname
devname
;
__po_hi_c_serial_conf_t_devname
devname
;
__po_hi_c_Baudrate_T
speed
;
__po_hi_c_Baudrate_T
speed
;
...
@@ -61,25 +68,18 @@ typedef struct {
...
@@ -61,25 +68,18 @@ typedef struct {
}
__po_hi_c_serial_conf_t
;
}
__po_hi_c_serial_conf_t
;
flag
__po_hi_c_serial_conf_t_devname_Equal
(
const
__po_hi_c_serial_conf_t_devname
val1
,
const
__po_hi_c_serial_conf_t_devname
val2
);
flag
__po_hi_c_serial_conf_t_bits_Equal
(
const
__po_hi_c_serial_conf_t_bits
*
pVal1
,
const
__po_hi_c_serial_conf_t_bits
*
pVal2
);
flag
__po_hi_c_serial_conf_t_sending_wait_Equal
(
const
__po_hi_c_serial_conf_t_sending_wait
*
pVal1
,
const
__po_hi_c_serial_conf_t_sending_wait
*
pVal2
);
flag
__po_hi_c_serial_conf_t_Equal
(
const
__po_hi_c_serial_conf_t
*
pVal1
,
const
__po_hi_c_serial_conf_t
*
pVal2
);
void
__po_hi_c_serial_conf_t_devname_Initialize
(
__po_hi_c_serial_conf_t_devname
val
);
void
__po_hi_c_serial_conf_t_devname_Initialize
(
__po_hi_c_serial_conf_t_devname
val
);
void
__po_hi_c_serial_conf_t_bits_Initialize
(
__po_hi_c_serial_conf_t_bits
*
pVal
);
void
__po_hi_c_serial_conf_t_bits_Initialize
(
__po_hi_c_serial_conf_t_bits
*
pVal
);
void
__po_hi_c_serial_conf_t_sending_wait_Initialize
(
__po_hi_c_serial_conf_t_sending_wait
*
pVal
);
void
__po_hi_c_serial_conf_t_sending_wait_Initialize
(
__po_hi_c_serial_conf_t_sending_wait
*
pVal
);
void
__po_hi_c_serial_conf_t_Initialize
(
__po_hi_c_serial_conf_t
*
pVal
);
void
__po_hi_c_serial_conf_t_Initialize
(
__po_hi_c_serial_conf_t
*
pVal
);
#define ERR_SERIAL_CONF_T 67
/**/
#define ERR_SERIAL_CONF_T_DEVNAME 15
/**/
#define ERR_SERIAL_CONF_T_DEVNAME 15
/**/
#define ERR_SERIAL_CONF_T_SPEED 2
2
/**/
#define ERR_SERIAL_CONF_T_SPEED
_2
2
9
/**/
#define ERR_SERIAL_CONF_T_PARITY
33
/**/
#define ERR_SERIAL_CONF_T_PARITY
_2 41
/**/
#define ERR_SERIAL_CONF_T_BITS 4
4
/**/
#define ERR_SERIAL_CONF_T_BITS 4
6
/**/
#define ERR_SERIAL_CONF_T_SENDING_WAIT 5
1
/**/
#define ERR_SERIAL_CONF_T_SENDING_WAIT 5
3
/**/
#define ERR_SERIAL_CONF_T_USE_PARITYBIT
58
/**/
#define ERR_SERIAL_CONF_T_USE_PARITYBIT
60
/**/
flag
__po_hi_c_serial_conf_t_IsConstraintValid
(
const
__po_hi_c_serial_conf_t
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_serial_conf_t_IsConstraintValid
(
const
__po_hi_c_serial_conf_t
*
pVal
,
int
*
pErrCode
);
extern
const
__po_hi_c_serial_conf_t
linux_ttyS0
;
extern
const
__po_hi_c_serial_conf_t
linux_ttyS0
;
...
@@ -102,4 +102,4 @@ extern const __po_hi_c_serial_conf_t leon_rasta_apburasta1;
...
@@ -102,4 +102,4 @@ extern const __po_hi_c_serial_conf_t leon_rasta_apburasta1;
#endif
#endif
#endif
#endif
\ No newline at end of file
include/drivers/configuration/spacewire.h
View file @
c5c89915
...
@@ -13,8 +13,6 @@ extern "C" {
...
@@ -13,8 +13,6 @@ extern "C" {
typedef
asn1SccUint
__po_hi_c_Core_Frequence_T
;
typedef
asn1SccUint
__po_hi_c_Core_Frequence_T
;
flag
__po_hi_c_Core_Frequence_T_Equal
(
const
__po_hi_c_Core_Frequence_T
*
pVal1
,
const
__po_hi_c_Core_Frequence_T
*
pVal2
);
void
__po_hi_c_Core_Frequence_T_Initialize
(
__po_hi_c_Core_Frequence_T
*
pVal
);
void
__po_hi_c_Core_Frequence_T_Initialize
(
__po_hi_c_Core_Frequence_T
*
pVal
);
#define ERR_CORE_FREQUENCE_T 1
/**/
#define ERR_CORE_FREQUENCE_T 1
/**/
...
@@ -22,8 +20,6 @@ flag __po_hi_c_Core_Frequence_T_IsConstraintValid(const __po_hi_c_Core_Frequence
...
@@ -22,8 +20,6 @@ flag __po_hi_c_Core_Frequence_T_IsConstraintValid(const __po_hi_c_Core_Frequence
typedef
asn1SccUint
__po_hi_c_Node_Addr_T
;
typedef
asn1SccUint
__po_hi_c_Node_Addr_T
;
flag
__po_hi_c_Node_Addr_T_Equal
(
const
__po_hi_c_Node_Addr_T
*
pVal1
,
const
__po_hi_c_Node_Addr_T
*
pVal2
);
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
);
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
);
#define ERR_NODE_ADDR_T 8
/**/
#define ERR_NODE_ADDR_T 8
/**/
...
@@ -31,15 +27,12 @@ flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* pVal,
...
@@ -31,15 +27,12 @@ flag __po_hi_c_Node_Addr_T_IsConstraintValid(const __po_hi_c_Node_Addr_T* pVal,
typedef
asn1SccUint
__po_hi_c_Clock_Division_T
;
typedef
asn1SccUint
__po_hi_c_Clock_Division_T
;
flag
__po_hi_c_Clock_Division_T_Equal
(
const
__po_hi_c_Clock_Division_T
*
pVal1
,
const
__po_hi_c_Clock_Division_T
*
pVal2
);
void
__po_hi_c_Clock_Division_T_Initialize
(
__po_hi_c_Clock_Division_T
*
pVal
);
void
__po_hi_c_Clock_Division_T_Initialize
(
__po_hi_c_Clock_Division_T
*
pVal
);
#define ERR_CLOCK_DIVISION_T 15
/**/
#define ERR_CLOCK_DIVISION_T 15
/**/
flag
__po_hi_c_Clock_Division_T_IsConstraintValid
(
const
__po_hi_c_Clock_Division_T
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_Clock_Division_T_IsConstraintValid
(
const
__po_hi_c_Clock_Division_T
*
pVal
,
int
*
pErrCode
);
/*-- __po_hi_c_spacewire_conf_t --------------------------------------------*/
/*-- __po_hi_c_spacewire_conf_t --------------------------------------------*/
typedef
char
__po_hi_c_spacewire_conf_t_devname
[
21
];
typedef
char
__po_hi_c_spacewire_conf_t_devname
[
21
];
typedef
struct
{
typedef
struct
{
__po_hi_c_spacewire_conf_t_devname
devname
;
__po_hi_c_spacewire_conf_t_devname
devname
;
__po_hi_c_Node_Addr_T
nodeaddr
;
__po_hi_c_Node_Addr_T
nodeaddr
;
...
@@ -61,21 +54,18 @@ typedef struct {
...
@@ -61,21 +54,18 @@ typedef struct {
}
__po_hi_c_spacewire_conf_t
;
}
__po_hi_c_spacewire_conf_t
;
flag
__po_hi_c_spacewire_conf_t_devname_Equal
(
const
__po_hi_c_spacewire_conf_t_devname
val1
,
const
__po_hi_c_spacewire_conf_t_devname
val2
);
flag
__po_hi_c_spacewire_conf_t_Equal
(
const
__po_hi_c_spacewire_conf_t
*
pVal1
,
const
__po_hi_c_spacewire_conf_t
*
pVal2
);
void
__po_hi_c_spacewire_conf_t_devname_Initialize
(
__po_hi_c_spacewire_conf_t_devname
val
);
void
__po_hi_c_spacewire_conf_t_devname_Initialize
(
__po_hi_c_spacewire_conf_t_devname
val
);
void
__po_hi_c_spacewire_conf_t_Initialize
(
__po_hi_c_spacewire_conf_t
*
pVal
);
void
__po_hi_c_spacewire_conf_t_Initialize
(
__po_hi_c_spacewire_conf_t
*
pVal
);
#define ERR_SPACEWIRE_CONF_T 93
/**/
#define ERR_SPACEWIRE_CONF_T_DEVNAME 22
/**/
#define ERR_SPACEWIRE_CONF_T_DEVNAME 22
/**/
#define ERR_SPACEWIRE_CONF_T_NODEADDR
29
/**/
#define ERR_SPACEWIRE_CONF_T_NODEADDR
_2 36
/**/
#define ERR_SPACEWIRE_CONF_T_COREFREQ 4
0
/**/
#define ERR_SPACEWIRE_CONF_T_COREFREQ
_2
4
8
/**/
#define ERR_SPACEWIRE_CONF_T_CLOCKDIV
51
/**/
#define ERR_SPACEWIRE_CONF_T_CLOCKDIV
_2 60
/**/
#define ERR_SPACEWIRE_CONF_T_USE_ROUTER 6
2
/**/
#define ERR_SPACEWIRE_CONF_T_USE_ROUTER 6
5
/**/
#define ERR_SPACEWIRE_CONF_T_REMOVE_PROT_ID
69
/**/
#define ERR_SPACEWIRE_CONF_T_REMOVE_PROT_ID
72
/**/
#define ERR_SPACEWIRE_CONF_T_RXBLOCK 7
6
/**/
#define ERR_SPACEWIRE_CONF_T_RXBLOCK 7
9
/**/
#define ERR_SPACEWIRE_CONF_T_TXBLOCK 8
3
/**/
#define ERR_SPACEWIRE_CONF_T_TXBLOCK 8
6
/**/
flag
__po_hi_c_spacewire_conf_t_IsConstraintValid
(
const
__po_hi_c_spacewire_conf_t
*
pVal
,
int
*
pErrCode
);
flag
__po_hi_c_spacewire_conf_t_IsConstraintValid
(
const
__po_hi_c_spacewire_conf_t
*
pVal
,
int
*
pErrCode
);
extern
const
__po_hi_c_spacewire_conf_t
leon_rasta_spw_sender
;
extern
const
__po_hi_c_spacewire_conf_t
leon_rasta_spw_sender
;
...
@@ -94,4 +84,4 @@ extern const __po_hi_c_spacewire_conf_t leon_rasta_spw_receiver;
...
@@ -94,4 +84,4 @@ extern const __po_hi_c_spacewire_conf_t leon_rasta_spw_receiver;
#endif
#endif
#endif
#endif
\ No newline at end of file
src/drivers/configuration/1553.c
View file @
c5c89915
...
@@ -5,19 +5,16 @@ Code automatically generated by asn1scc tool
...
@@ -5,19 +5,16 @@ Code automatically generated by asn1scc tool
#include <limits.h>
#include <limits.h>
#include <string.h>
#include <string.h>
#include <math.h>
#include <math.h>
#include "1553.h"
#include "1553.h"
flag
__po_hi_c_Node_Addr_T_Equal
(
const
__po_hi_c_Node_Addr_T
*
pVal1
,
const
__po_hi_c_Node_Addr_T
*
pVal2
)
{
return
(
*
(
pVal1
))
==
(
*
(
pVal2
));
}
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
)
void
__po_hi_c_Node_Addr_T_Initialize
(
__po_hi_c_Node_Addr_T
*
pVal
)
{
{
(
void
)
pVal
;
(
*
(
pVal
))
=
0
;
(
*
(
pVal
))
=
0
;
}
}
...
@@ -25,23 +22,20 @@ void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal)
...
@@ -25,23 +22,20 @@ void __po_hi_c_Node_Addr_T_Initialize(__po_hi_c_Node_Addr_T* pVal)
flag
__po_hi_c_Node_Addr_T_IsConstraintValid
(
const
__po_hi_c_Node_Addr_T
*
pVal
,
int
*
pErrCode
)
flag
__po_hi_c_Node_Addr_T_IsConstraintValid
(
const
__po_hi_c_Node_Addr_T
*
pVal
,
int
*
pErrCode
)
{
{
flag
ret
=
TRUE
;
flag
ret
=
TRUE
;
(
void
)
pVal
;
ret
=
((
*
(
pVal
))
<=
31UL
);
ret
=
((
*
(
pVal
))
<=
31UL
);
*
pErrCode
=
ret
?
0
:
ERR_NODE_ADDR_T
;
*
pErrCode
=
ret
?
0
:
ERR_NODE_ADDR_T
;
return
ret
;
return
ret
;
}
}
flag
__po_hi_c_Standard_T_Equal
(
const
__po_hi_c_Standard_T
*
pVal1
,
const
__po_hi_c_Standard_T
*
pVal2
)
{
return
(
*
(
pVal1
))
==
(
*
(
pVal2
));
}
void
__po_hi_c_Standard_T_Initialize
(
__po_hi_c_Standard_T
*
pVal
)
void
__po_hi_c_Standard_T_Initialize
(
__po_hi_c_Standard_T
*
pVal
)
{
{
(
void
)
pVal
;
(
*
(
pVal
))
=
__po_hi_c_mil1553a
;
(
*
(
pVal
))
=
__po_hi_c_mil1553a
;
}
}
...
@@ -49,23 +43,20 @@ void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal)
...
@@ -49,23 +43,20 @@ void __po_hi_c_Standard_T_Initialize(__po_hi_c_Standard_T* pVal)
flag
__po_hi_c_Standard_T_IsConstraintValid
(
const
__po_hi_c_Standard_T
*
pVal
,
int
*
pErrCode
)
flag
__po_hi_c_Standard_T_IsConstraintValid
(
const
__po_hi_c_Standard_T
*
pVal
,
int
*
pErrCode
)
{
{
flag
ret
=
TRUE
;
flag
ret
=
TRUE
;
(
void
)
pVal
;
ret
=
((((
*
(
pVal
))
==
__po_hi_c_mil1553a
))
||
(((
*
(
pVal
))
==
__po_hi_c_mil1553b
)));
ret
=
((((
*
(
pVal
))
==
__po_hi_c_mil1553a
))
||
(((
*
(
pVal
))
==
__po_hi_c_mil1553b
)));
*
pErrCode
=
ret
?
0
:
ERR_STANDARD_T
;
*
pErrCode
=
ret
?
0
:
ERR_STANDARD_T
;
return
ret
;
return
ret
;
}
}
flag
__po_hi_c_Mode_T_Equal
(
const
__po_hi_c_Mode_T
*
pVal1
,
const
__po_hi_c_Mode_T
*
pVal2
)
{
return
(
*
(
pVal1
))
==
(
*
(
pVal2
));
}
void
__po_hi_c_Mode_T_Initialize
(
__po_hi_c_Mode_T
*
pVal
)
void
__po_hi_c_Mode_T_Initialize
(
__po_hi_c_Mode_T
*
pVal
)
{
{
(
void
)
pVal
;
(
*
(
pVal
))
=
__po_hi_c_controller
;
(
*
(
pVal
))
=
__po_hi_c_controller
;
}
}
...
@@ -73,23 +64,20 @@ void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal)
...
@@ -73,23 +64,20 @@ void __po_hi_c_Mode_T_Initialize(__po_hi_c_Mode_T* pVal)
flag
__po_hi_c_Mode_T_IsConstraintValid
(
const
__po_hi_c_Mode_T
*
pVal
,
int
*
pErrCode
)
flag
__po_hi_c_Mode_T_IsConstraintValid
(
const
__po_hi_c_Mode_T
*
pVal
,
int
*
pErrCode
)
{
{
flag
ret
=
TRUE
;
flag
ret
=
TRUE
;
(
void
)
pVal
;
ret
=
((((((
*
(
pVal
))
==
__po_hi_c_controller
))
||
(((
*
(
pVal
))
==
__po_hi_c_terminal
))))
||
(((
*
(
pVal
))
==
__po_hi_c_monitor
)));
ret
=
((((((
*
(
pVal
))
==
__po_hi_c_controller
))
||
(((
*
(
pVal
))
==
__po_hi_c_terminal
))))
||
(((
*
(
pVal
))
==
__po_hi_c_monitor
)));
*
pErrCode
=
ret
?
0
:
ERR_MODE_T
;
*
pErrCode
=
ret
?
0
:
ERR_MODE_T
;
return
ret
;