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...

Collaboration diagram for Message Interpreter:

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
 

Detailed Description

Given a byte string response from the firmware, selects the adequate frame for the GUI.

*
* 
Note

Function Documentation

◆ asic_version_read()

static void asic_version_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 115 of file message_interpreter.c.

Here is the caller graph for this function:

◆ board_type_read()

static void board_type_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 337 of file message_interpreter.c.

Here is the caller graph for this function:

◆ bytes_to_AFE()

static void bytes_to_AFE ( uint8_t *  AFE_bytes,
AFE_reg_type *  AFE_register 
)
static

decodes the AFE register of the IRPyro into this_device

Definition at line 63 of file message_interpreter.c.

Here is the caller graph for this function:

◆ bytes_to_CCP()

static void bytes_to_CCP ( uint8_t  CCP_byte,
CCP_reg_type *  CCP_register 
)
static

decodes the CCP register of the IRPyro into this_device

Definition at line 77 of file message_interpreter.c.

Here is the caller graph for this function:

◆ bytes_to_WUP()

static void bytes_to_WUP ( uint8_t *  WUP_bytes,
WUP_reg_type *  WUP_register 
)
static

decodes the WUP register of the IRPyro into this_device

Definition at line 87 of file message_interpreter.c.

Here is the caller graph for this function:

◆ firmware_version_send()

static void firmware_version_send ( void  )
static

configures firmware version string

Definition at line 108 of file message_interpreter.c.

Here is the caller graph for this function:

◆ fndummy()

static void fndummy ( void  )
static

Null operation for the state machine.

Definition at line 222 of file message_interpreter.c.

Here is the caller graph for this function:

◆ get_darkpixel_state()

static void get_darkpixel_state ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 368 of file message_interpreter.c.

Here is the caller graph for this function:

◆ get_failure_flags()

static void get_failure_flags ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 330 of file message_interpreter.c.

Here is the caller graph for this function:

◆ goto_sleep()

static void goto_sleep ( void  )
static

Configures the wake up function and sends the sleep command.

Definition at line 229 of file message_interpreter.c.

Here is the caller graph for this function:

◆ intpr_AFE_read()

static void intpr_AFE_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 122 of file message_interpreter.c.

Here is the caller graph for this function:

◆ intpr_AFE_write()

static void intpr_AFE_write ( void  )
static

commits the AFE values to the structure in memory

Definition at line 129 of file message_interpreter.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intpr_CCP_read()

static void intpr_CCP_read ( void  )
static

Collects values stored in the channels configured on channel configuration.

Definition at line 158 of file message_interpreter.c.

Here is the caller graph for this function:

◆ intpr_CCP_write()

static void intpr_CCP_write ( void  )
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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intpr_WUP_read()

static void intpr_WUP_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 198 of file message_interpreter.c.

Here is the caller graph for this function:

◆ intpr_WUP_write()

static void intpr_WUP_write ( void  )
static

Loads the WUP values to be applied to the sensor.

Definition at line 205 of file message_interpreter.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logical_channels_read()

static void logical_channels_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 293 of file message_interpreter.c.

Here is the caller graph for this function:

◆ logical_channels_write()

static void logical_channels_write ( void  )
static

Updates with values received from the GUI.

Definition at line 301 of file message_interpreter.c.

Here is the caller graph for this function:

◆ message_interpreter()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ null_test_command()

static void null_test_command ( void  )
static

configures the null test

Definition at line 101 of file message_interpreter.c.

Here is the caller graph for this function:

◆ report_error()

static void report_error ( void  )
static

Changes the error flag and reports to the GUI.

Definition at line 394 of file message_interpreter.c.

Here is the caller graph for this function:

◆ reset_hard()

static void reset_hard ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 258 of file message_interpreter.c.

Here is the caller graph for this function:

◆ reset_hardware()

static void reset_hardware ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 265 of file message_interpreter.c.

Here is the caller graph for this function:

◆ reset_soft()

static void reset_soft ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 251 of file message_interpreter.c.

Here is the caller graph for this function:

◆ sampling_rate_read()

static void sampling_rate_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 272 of file message_interpreter.c.

Here is the caller graph for this function:

◆ sampling_rate_write()

static void sampling_rate_write ( void  )
static

Configures the sample rate in memory and prepares message to sensor.

Definition at line 280 of file message_interpreter.c.

Here is the caller graph for this function:

◆ second_unit_id_read()

static void second_unit_id_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 361 of file message_interpreter.c.

Here is the caller graph for this function:

◆ set_darkpixel_state()

static void set_darkpixel_state ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 375 of file message_interpreter.c.

Here is the caller graph for this function:

◆ set_emitter_state()

static void set_emitter_state ( void  )
static

Updates with values received from the GUI.

Definition at line 322 of file message_interpreter.c.

Here is the caller graph for this function:

◆ set_emitter_timings()

static void set_emitter_timings ( void  )
static

Updates with the values received from the GUI.

Definition at line 312 of file message_interpreter.c.

Here is the caller graph for this function:

◆ status_start()

static void status_start ( void  )
static

Enables status report to the GUI.

Definition at line 402 of file message_interpreter.c.

Here is the caller graph for this function:

◆ status_stop()

static void status_stop ( void  )
static

Disables status report to the GUI.

Definition at line 410 of file message_interpreter.c.

Here is the caller graph for this function:

◆ streaming_start()

static void streaming_start ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 214 of file message_interpreter.c.

Here is the caller graph for this function:

◆ streaming_stop()

static void streaming_stop ( void  )
static

Changes the streaming flag and reports to the GUI.

Definition at line 386 of file message_interpreter.c.

Here is the caller graph for this function:

◆ unit_id_read()

static void unit_id_read ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 344 of file message_interpreter.c.

Here is the caller graph for this function:

◆ unit_id_write()

static void unit_id_write ( void  )
static

Returns the result to the operation to the GUI.

Definition at line 351 of file message_interpreter.c.

Here is the caller graph for this function:

◆ wake_up()

static void wake_up ( void  )
static

Wakes up the sensor and disables the call back function.

Definition at line 240 of file message_interpreter.c.

Here is the caller graph for this function:

Variable Documentation

◆ message_to_sensor_payload

uint8_t message_to_sensor_payload[7] = {0}

Definition at line 54 of file message_interpreter.c.

◆ next_step

Definition at line 55 of file message_interpreter.c.

◆ pointer_to_read_function

EXTernal_callback pointer_to_read_function

Definition at line 86 of file main.c.

◆ pointer_to_wakeup_function

EXTernal_callback pointer_to_wakeup_function

Definition at line 87 of file main.c.