Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Libcoincellhell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klemm, Carl Philipp
Libcoincellhell
Commits
46d27ba6
Commit
46d27ba6
authored
1 year ago
by
Carl Philipp Klemm
Browse files
Options
Downloads
Patches
Plain Diff
fix spelling in various places
parent
b3d3f2b5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
coincellhell/coincellhell.h
+28
-28
28 additions, 28 deletions
coincellhell/coincellhell.h
options.h
+1
-1
1 addition, 1 deletion
options.h
with
32 additions
and
32 deletions
README.md
+
3
−
3
View file @
46d27ba6
...
@@ -4,7 +4,7 @@ libcoincellhell is a shared library that allows you to control coincellhell devi
...
@@ -4,7 +4,7 @@ libcoincellhell is a shared library that allows you to control coincellhell devi
For questions or comments, please write to klemm@rhd-instruments.de
For questions or comments, please write to klemm@rhd-instruments.de
Full Online API documentation can be built with the "doc" target and is also av
i
alable
[
here
](
http://uvos.xyz/kiss/libcoincellhell
)
.
Full Online API documentation can be built with the "doc" target and is also ava
i
lable
[
here
](
http://uvos.xyz/kiss/libcoincellhell
)
.
A PDF with API documentation can be found
[
here
](
http://uvos.xyz/kiss/libcoincellhell.pdf
)
.
A PDF with API documentation can be found
[
here
](
http://uvos.xyz/kiss/libcoincellhell.pdf
)
.
## Compile/Install
## Compile/Install
...
@@ -33,6 +33,6 @@ to make the documentation:
...
@@ -33,6 +33,6 @@ to make the documentation:
*
make doc
*
make doc
### Licen
c
e
### Licen
s
e
libcoincellhell is licen
c
ed to you under the Apache License, Version 2.0
libcoincellhell is licen
s
ed to you under the Apache License, Version 2.0
This diff is collapsed.
Click to expand it.
coincellhell/coincellhell.h
+
28
−
28
View file @
46d27ba6
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
#include
"usbcommands.h"
#include
"usbcommands.h"
/**
/**
A
pi
to control
l
EISmultiplexer devices.
A
PI
to control EISmultiplexer devices.
* @defgroup API User API
* @defgroup API User API
* This
api
allows you to control
l
the EISmultiplexer device.
* This
API
allows you to control the EISmultiplexer device.
* @{
* @{
*/
*/
...
@@ -55,39 +55,39 @@ struct heater_state
...
@@ -55,39 +55,39 @@ struct heater_state
bool
enabled
;
bool
enabled
;
/** true if heater is close to its set point*/
/** true if heater is close to its set point*/
bool
ready
;
bool
ready
;
/** true if heater is currently exec
tue
ting a ramp*/
/** true if heater is currently exec
u
ting a ramp*/
bool
ramp
;
bool
ramp
;
/** true if the system has detected a fault with this heater*/
/** true if the system has detected a fault with this heater*/
bool
fault
;
bool
fault
;
/** the detected fault type as a fault_t enum*/
/** the detected fault type as a fault_t enum*/
fault_t
faultType
;
fault_t
faultType
;
/** current command (0-255) that is being sent to the
dac
for this heater*/
/** current command (0-255) that is being sent to the
DAC
for this heater*/
uint8_t
dacCommand
;
uint8_t
dacCommand
;
/** current target temperature for this heater*/
/** current target temperature for this heater*/
float
setpoint
;
float
setpoint
;
/** if a ramp is currently being executed, its final temperature will be set here*/
/** if a ramp is currently being executed, its final temperature will be set here*/
float
rampTarget
;
float
rampTarget
;
/** if a ramp is currently being executed, the
unix
timestamp at which it was started*/
/** if a ramp is currently being executed, the
UNIX
timestamp at which it was started*/
time_t
rampStartTime
;
time_t
rampStartTime
;
/** if a ramp is currently being executed, the
unix
timestamp at it will complete*/
/** if a ramp is currently being executed, the
UNIX
timestamp at it will complete*/
time_t
rampStopTime
;
time_t
rampStopTime
;
};
};
/**
/**
* @brief Attempts to connect to a EISmultiplexer device and initalizes a coincellhell struct
* @brief Attempts to connect to a EISmultiplexer device and init
i
alizes a coincellhell struct
* @param hell pointer to a coincellhell struct to initalize
* @param hell pointer to a coincellhell struct to init
i
alize
* @param serial The serial number of the device to connect to, or 0 for any
* @param serial The serial number of the device to connect to, or 0 for any
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_connect
(
struct
coincellhell
*
hell
,
uint16_t
serial
);
int
coincellhell_connect
(
struct
coincellhell
*
hell
,
uint16_t
serial
);
/**
/**
* @brief Reads the current temperature of the given heater at given location
* @brief Reads the current temperature of the given heater at given location
* @param heater heater from which to get the temperature
* @param heater heater from which to get the temperature
* @param location Place where temperature shal be mesured
* @param location Place where temperature shal
l
be me
a
sured
* @param temperature A float where the temperature in degrees
c
el
c
ius will be stored
* @param temperature A float where the temperature in degrees
C
el
s
ius will be stored
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_get_temperature
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
temperature_sensor_location_t
location
,
float
*
temperature
);
int
coincellhell_get_temperature
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
temperature_sensor_location_t
location
,
float
*
temperature
);
...
@@ -95,15 +95,15 @@ int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temp
...
@@ -95,15 +95,15 @@ int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temp
* @brief Sets the target temperature of the given heater
* @brief Sets the target temperature of the given heater
* @param heater heater for which to set the temperature
* @param heater heater for which to set the temperature
* @param temperature temperature to set
* @param temperature temperature to set
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_set_temperature
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
float
temperature
);
int
coincellhell_set_temperature
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
float
temperature
);
/**
/**
* @brief Gets the target temperature of the given heater
* @brief Gets the target temperature of the given heater
* @param heater heater for which to set the temperature
* @param heater heater for which to set the temperature
* @param temperature A float where the temperature in degrees
c
el
c
ius will be stored
* @param temperature A float where the temperature in degrees
C
el
s
ius will be stored
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_get_temperature_setpoint
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
float
*
temperature
);
int
coincellhell_get_temperature_setpoint
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
float
*
temperature
);
...
@@ -111,7 +111,7 @@ int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t hea
...
@@ -111,7 +111,7 @@ int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t hea
* @brief Gets the state struct for the given heater
* @brief Gets the state struct for the given heater
* @param heater heater for which to set the temperature
* @param heater heater for which to set the temperature
* @param state A struct where the state will be stored
* @param state A struct where the state will be stored
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_get_state
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
struct
heater_state
*
state
);
int
coincellhell_get_state
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
struct
heater_state
*
state
);
...
@@ -119,14 +119,14 @@ int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct hea
...
@@ -119,14 +119,14 @@ int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct hea
* @brief Sets the enabled state for a give heater
* @brief Sets the enabled state for a give heater
* @param heater heater for which to set the enabled state
* @param heater heater for which to set the enabled state
* @param state A struct where the state will be stored
* @param state A struct where the state will be stored
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_set_enabled
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
bool
enabled
);
int
coincellhell_set_enabled
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
bool
enabled
);
/**
/**
* @brief Checks if all temperatures are close to th
a
ir setpoins
* @brief Checks if all temperatures are close to th
e
ir set
poin
t
s
* @param ready a pointer to a bool where the result will be stored, true if all temperatures have been rea
t
ch, false otherwise
* @param ready a pointer to a bool where the result will be stored, true if all temperatures have been reach, false otherwise
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_check_ready
(
struct
coincellhell
*
hell
,
bool
*
ready
);
int
coincellhell_check_ready
(
struct
coincellhell
*
hell
,
bool
*
ready
);
...
@@ -134,22 +134,22 @@ int coincellhell_check_ready(struct coincellhell* hell, bool* ready);
...
@@ -134,22 +134,22 @@ int coincellhell_check_ready(struct coincellhell* hell, bool* ready);
* @brief Will linearly ramp the temperature to the one provided from now until end_time
* @brief Will linearly ramp the temperature to the one provided from now until end_time
* @param heater heater for which to set the ramp
* @param heater heater for which to set the ramp
* @param temperature temperature to ramp to
* @param temperature temperature to ramp to
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_set_temperature_ramp
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
time_t
end_time
,
float
temperature
);
int
coincellhell_set_temperature_ramp
(
struct
coincellhell
*
hell
,
uint8_t
heater
,
time_t
end_time
,
float
temperature
);
/**
/**
* @brief Canc
l
es any previously set ramp, the setpoint of the heater will hold the current temperature
* @brief Cance
l
s any previously set ramp, the set
point
s
of the heater will hold the current temperature
* @param heater heater for which to canc
l
e the ramp
* @param heater heater for which to cance
l
the ramp
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_cancle_ramp
(
struct
coincellhell
*
hell
,
uint8_t
heater
);
int
coincellhell_cancle_ramp
(
struct
coincellhell
*
hell
,
uint8_t
heater
);
/**
/**
* @brief Turns the led on the
pcb
on or off
* @brief Turns the led on the
PCB
on or off
* @param hell pointer to a coincellhell struct
* @param hell pointer to a coincellhell struct
* @param on true to turn the led on, false to turn it off
* @param on true to turn the led on, false to turn it off
* @return 0 on sucess and < 0 on failure
* @return 0 on suc
c
ess and < 0 on failure
*/
*/
int
coincellhell_set_led
(
struct
coincellhell
*
hell
,
bool
on
);
int
coincellhell_set_led
(
struct
coincellhell
*
hell
,
bool
on
);
...
@@ -167,7 +167,7 @@ void coincellhell_disconnect(struct coincellhell* hell);
...
@@ -167,7 +167,7 @@ void coincellhell_disconnect(struct coincellhell* hell);
/**
/**
* @brief Returns a human readable string for a given fault.
* @brief Returns a human readable string for a given fault.
* @param fault the fault code
* @param fault the fault code
* @return a const string describ
e
ing the fault
* @return a const string describing the fault
*/
*/
const
char
*
coincellhell_string_for_fault
(
fault_t
fault
);
const
char
*
coincellhell_string_for_fault
(
fault_t
fault
);
...
...
This diff is collapsed.
Click to expand it.
options.h
+
1
−
1
View file @
46d27ba6
...
@@ -42,7 +42,7 @@ static struct argp_option options[] =
...
@@ -42,7 +42,7 @@ static struct argp_option options[] =
{
{
{
"interactive"
,
'i'
,
0
,
0
,
"run in interactive mode"
},
{
"interactive"
,
'i'
,
0
,
0
,
"run in interactive mode"
},
{
"pipe"
,
'p'
,
0
,
0
,
"run in pipe mode"
},
{
"pipe"
,
'p'
,
0
,
0
,
"run in pipe mode"
},
{
"serial"
,
's'
,
"[NUM
M
BER]"
,
0
,
"serial number of device to connect to"
},
{
"serial"
,
's'
,
"[NUMBER]"
,
0
,
"serial number of device to connect to"
},
{
"list"
,
'l'
,
0
,
0
,
"list commands"
},
{
"list"
,
'l'
,
0
,
0
,
"list commands"
},
{
0
}
{
0
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment