IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
|
Given a byte string response from the firmware, selects the adequate frame for the GUI. More...
Functions | |
static void | asic_version_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | board_type_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | bytes_to_AFE (uint8_t *AFE_bytes, AFE_reg_type *AFE_register) |
decodes the AFE register of the IRPyro into this_device More... | |
static void | bytes_to_CCP (uint8_t CCP_byte, CCP_reg_type *CCP_register) |
decodes the CCP register of the IRPyro into this_device More... | |
static void | bytes_to_WUP (uint8_t *WUP_bytes, WUP_reg_type *WUP_register) |
decodes the WUP register of the IRPyro into this_device More... | |
static void | firmware_version_send (void) |
configures firmware version string More... | |
static void | fndummy (void) |
Null operation for the state machine. More... | |
static void | get_darkpixel_state (void) |
Returns the result to the operation to the GUI. More... | |
static void | get_failure_flags (void) |
Returns the result to the operation to the GUI. More... | |
static void | goto_sleep (void) |
Configures the wake up function and sends the sleep command. More... | |
static void | intpr_AFE_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | intpr_AFE_write (void) |
commits the AFE values to the structure in memory More... | |
static void | intpr_CCP_read (void) |
Collects values stored in the channels configured on channel configuration. More... | |
static void | intpr_CCP_write (void) |
Writes CCP values to channels configured on channel configuration the CCP values are given as single registers by the GUI. they need to be converted to API form and written to the registers in memory. The values in memory are committed to the actual sensor using the ioctl command. More... | |
static void | intpr_WUP_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | intpr_WUP_write (void) |
Loads the WUP values to be applied to the sensor. More... | |
static void | logical_channels_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | logical_channels_write (void) |
Updates with values received from the GUI. More... | |
execute_next_state_type | message_interpreter (uint8_t *cmd_code, uint8_t *destination) |
Recovers the next message from the GUI to the sensor If the message is valid, is passed to the corresponding function. the function then sets flags or loads parameters. More... | |
static void | null_test_command (void) |
configures the null test More... | |
static void | report_error (void) |
Changes the error flag and reports to the GUI. More... | |
static void | reset_hard (void) |
Returns the result to the operation to the GUI. More... | |
static void | reset_hardware (void) |
Returns the result to the operation to the GUI. More... | |
static void | reset_soft (void) |
Returns the result to the operation to the GUI. More... | |
static void | sampling_rate_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | sampling_rate_write (void) |
Configures the sample rate in memory and prepares message to sensor. More... | |
static void | second_unit_id_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | set_darkpixel_state (void) |
Returns the result to the operation to the GUI. More... | |
static void | set_emitter_state (void) |
Updates with values received from the GUI. More... | |
static void | set_emitter_timings (void) |
Updates with the values received from the GUI. More... | |
static void | status_start (void) |
Enables status report to the GUI. More... | |
static void | status_stop (void) |
Disables status report to the GUI. More... | |
static void | streaming_start (void) |
Returns the result to the operation to the GUI. More... | |
static void | streaming_stop (void) |
Changes the streaming flag and reports to the GUI. More... | |
static void | unit_id_read (void) |
Returns the result to the operation to the GUI. More... | |
static void | unit_id_write (void) |
Returns the result to the operation to the GUI. More... | |
static void | wake_up (void) |
Wakes up the sensor and disables the call back function. More... | |
Variables | |
uint8_t | message_to_sensor_payload [7] = {0} |
execute_next_state_type | next_step |
EXTernal_callback | pointer_to_read_function |
EXTernal_callback | pointer_to_wakeup_function |
Given a byte string response from the firmware, selects the adequate frame for the GUI.
* *
|
static |
Returns the result to the operation to the GUI.
Definition at line 115 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 337 of file message_interpreter.c.
|
static |
decodes the AFE register of the IRPyro into this_device
Definition at line 63 of file message_interpreter.c.
|
static |
decodes the CCP register of the IRPyro into this_device
Definition at line 77 of file message_interpreter.c.
|
static |
decodes the WUP register of the IRPyro into this_device
Definition at line 87 of file message_interpreter.c.
|
static |
configures firmware version string
Definition at line 108 of file message_interpreter.c.
|
static |
Null operation for the state machine.
Definition at line 222 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 368 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 330 of file message_interpreter.c.
|
static |
Configures the wake up function and sends the sleep command.
Definition at line 229 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 122 of file message_interpreter.c.
|
static |
commits the AFE values to the structure in memory
Definition at line 129 of file message_interpreter.c.
|
static |
Collects values stored in the channels configured on channel configuration.
Definition at line 158 of file message_interpreter.c.
|
static |
Writes CCP values to channels configured on channel configuration the CCP values are given as single registers by the GUI. they need to be converted to API form and written to the registers in memory. The values in memory are committed to the actual sensor using the ioctl command.
Definition at line 168 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 198 of file message_interpreter.c.
|
static |
Loads the WUP values to be applied to the sensor.
Definition at line 205 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 293 of file message_interpreter.c.
|
static |
Updates with values received from the GUI.
Definition at line 301 of file message_interpreter.c.
execute_next_state_type message_interpreter | ( | uint8_t * | cmd_code, |
uint8_t * | destination | ||
) |
Recovers the next message from the GUI to the sensor If the message is valid, is passed to the corresponding function. the function then sets flags or loads parameters.
Definition at line 422 of file message_interpreter.c.
|
static |
configures the null test
Definition at line 101 of file message_interpreter.c.
|
static |
Changes the error flag and reports to the GUI.
Definition at line 394 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 258 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 265 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 251 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 272 of file message_interpreter.c.
|
static |
Configures the sample rate in memory and prepares message to sensor.
Definition at line 280 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 361 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 375 of file message_interpreter.c.
|
static |
Updates with values received from the GUI.
Definition at line 322 of file message_interpreter.c.
|
static |
Updates with the values received from the GUI.
Definition at line 312 of file message_interpreter.c.
|
static |
Enables status report to the GUI.
Definition at line 402 of file message_interpreter.c.
|
static |
Disables status report to the GUI.
Definition at line 410 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 214 of file message_interpreter.c.
|
static |
Changes the streaming flag and reports to the GUI.
Definition at line 386 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 344 of file message_interpreter.c.
|
static |
Returns the result to the operation to the GUI.
Definition at line 351 of file message_interpreter.c.
|
static |
Wakes up the sensor and disables the call back function.
Definition at line 240 of file message_interpreter.c.
uint8_t message_to_sensor_payload[7] = {0} |
Definition at line 54 of file message_interpreter.c.
execute_next_state_type next_step |
Definition at line 55 of file message_interpreter.c.