Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-ELAB
pilc2server
Commits
31d5b9d1
Commit
31d5b9d1
authored
May 11, 2022
by
Joshua Supra
Browse files
.
parent
9b785d70
Changes
3
Hide whitespace changes
Inline
Side-by-side
pilc2_functions/libpilc2.a
View file @
31d5b9d1
No preview for this file type
pilc2_functions/pilc2_IO_GPIOs.c
View file @
31d5b9d1
...
...
@@ -235,16 +235,16 @@ int GetIOCardRegister(IOCardStruct *IOCard)
case
ADAPTER
:
if
(
IOCard
[
i
-
1
].
TypeID
==
DIFF_ADC
)
{
IOCard
[
i
].
Register_value
=
getDADCRawvalue
((
i
-
1
)
/
2
);
}
else
if
(
IOCard
[
i
-
1
].
TypeID
==
THERMO
)
{
IOCard
[
i
].
Register_value
=
getThermoRawvalue
(((
i
-
1
)
/
2
+
16
));
IOCard
[
i
].
Register_value
=
getThermoRawvalue
(((
i
-
1
)
/
2
));
}
else
if
(
IOCard
[
i
-
1
].
TypeID
==
PT100
){
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
-
1
)
/
4
+
16
));
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
-
1
)
/
4
));
}
else
if
(
IOCard
[
i
+
1
].
TypeID
==
PT100
){
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
+
1
)
/
4
+
16
));
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
+
1
)
/
4
));
}
break
;
case
THERMO
:
IOCard
[
i
].
Register_value
=
getThermoRawvalue
(((
i
)
/
2
+
16
));
break
;
case
THERMO
:
IOCard
[
i
].
Register_value
=
getThermoRawvalue
(((
i
)
/
2
));
break
;
case
PT100
:
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
)
/
4
+
16
));
break
;
case
PT100
:
IOCard
[
i
].
Register_value
=
getPT100RawValue
(((
i
)
/
4
));
break
;
}
}
else
{
IOCard
[
i
].
Register_value
=
0
;
...
...
pilc2_functions/pilc2_IO_mux.c
View file @
31d5b9d1
...
...
@@ -42,7 +42,7 @@ void setIOMuxCfg(char channel, unsigned int config) {
*
* @param channel - Selected IOchannel
*
* @return
Ć
onfig of the selected IO channel
* @return
c
onfig of the selected IO channel
*
*
*******************************************************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment