|
heat control
r71
|

Go to the source code of this file.
Functions | |
| void | CommInit (void) |
| init as defined in "doc4300.pdf": figure 12. Initialization of the Receive Driver More... | |
| ISR (PCINT_vect) | |
| pin change (PCINT8) interrupt service More... | |
| void | EnablePcint8 (void) |
| enable pin change interrupt PCINT8 More... | |
| void | DisablePcint8 (void) |
| disable pin change interrupt PCINT8 More... | |
| void | DisableUsi (void) |
| disable USI module, there's no specific flag to do so -> disabling what can be done More... | |
| void | EnableUsi (void) |
| enable USI module for proper comm More... | |
| ISR (USI_OVF_vect) | |
| USI counter overflow interrupt service - signals reception of one byte. More... | |
| UCHAR | GetSenderValues (UINT *innerTemp, UINT *outerTemp) |
| establish decimal temperature values form raw stream in sequence More... | |
| UCHAR | PlausibilityCheck (UINT innerTemp, UINT outerTemp) |
| check plausibility of recently received temperatures against specific limits More... | |
| UCHAR | CalcCrc (void) |
Variables | |
| UCHAR | g_seq [SEQ_BUF_SIZE] |
| UCHAR volatile | g_seqReady = FALSE |
| UCHAR CalcCrc | ( | void | ) |
Definition at line 180 of file comm.c.
References CRC_OVER_ALL, g_seq, SUP_VOLT_VAL_H_ID, SUP_VOLT_VAL_L_ID, TEMP_CH1_VAL_H_ID, TEMP_CH1_VAL_L_ID, TEMP_CH2_VAL_H_ID, TEMP_CH2_VAL_L_ID, and UCHAR.
Referenced by GetSenderValues().

| void CommInit | ( | void | ) |
init as defined in "doc4300.pdf": figure 12. Initialization of the Receive Driver
Definition at line 27 of file comm.c.
References DisableUsi(), and EnablePcint8().
Referenced by Init().


| void DisablePcint8 | ( | void | ) |
| void DisableUsi | ( | void | ) |
disable USI module, there's no specific flag to do so -> disabling what can be done
Definition at line 76 of file comm.c.
Referenced by CommInit(), and ISR().

| void EnablePcint8 | ( | void | ) |
enable pin change interrupt PCINT8
Definition at line 60 of file comm.c.
Referenced by CommInit(), and ISR().

| void EnableUsi | ( | void | ) |
establish decimal temperature values form raw stream in sequence
| innerTemp | buffer to inner temperature |
| outerTemp | buffer to outer temperature |
Definition at line 133 of file comm.c.
References CalcCrc(), FALSE, g_seq, g_seqReady, INVALID_VAL_U16, TEMP_CH1_VAL_H_ID, TEMP_CH1_VAL_L_ID, TEMP_CH2_VAL_H_ID, TEMP_CH2_VAL_L_ID, TRUE, and UCHAR.
Referenced by main().


| ISR | ( | PCINT_vect | ) |
pin change (PCINT8) interrupt service
| PCINT_vect | pin change interrupt vector |
Definition at line 46 of file comm.c.
References DATABIT, DisablePcint8(), EnableUsi(), and TRUE.

| ISR | ( | USI_OVF_vect | ) |
USI counter overflow interrupt service - signals reception of one byte.
| USI_OVF_vect | usi counter overflow interrupt vector |
Definition at line 101 of file comm.c.
References DisableUsi(), EnablePcint8(), FlipByte(), g_seq, g_seqReady, SEQ_BUF_SIZE, SEQ_END, SEQ_STA, TRUE, and UCHAR.

check plausibility of recently received temperatures against specific limits
| innerTemp | inner temperature |
| outerTemp | outer temperature |
Definition at line 162 of file comm.c.
References FALSE, INVALID_VAL_U16, MAX_DEL_INNER_TEMP, MAX_DEL_OUTER_TEMP, MIN_ABS_INNER_TEMP, MIN_ABS_OUTER_TEMP, TRUE, UCHAR, and UINT.
| UCHAR g_seq[SEQ_BUF_SIZE] |
indicator for available remote temperatures sequence buffer
Definition at line 18 of file comm.c.
Referenced by CalcCrc(), GetSenderValues(), and ISR().