1 // RUN: %clang_cc1 -emit-llvm %s -o %t
7 unsigned short version
;
12 int max_out_vltg_1
, max_out_vltg_2
;
13 int max_mains_current
;
16 _Bool input_parallelch2
:1;
32 extern struct SysParams params
;
35 void kcmd_setParams(void)
38 unsigned char igain_1
;
39 unsigned char igain_2
;
40 unsigned char max_out_vltg_1
;
41 unsigned char max_out_vltg_2
;
42 unsigned char max_imains
;
43 unsigned char cliplmt_ch1
:1;
44 unsigned char cliplmt_ch2
:1;
45 unsigned char gate_ch1
:1;
46 unsigned char gate_ch2
:1;
49 params
.cliplmt_ch1
= msg
.cliplmt_ch1
;
50 params
.cliplmt_ch2
= msg
.cliplmt_ch2
;
51 params
.gate_ch1
= msg
.gate_ch1
;
52 params
.gate_ch2
= msg
.gate_ch2
;