IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
|
IRPyro messaging application to communicate with the IRPyro evaluation tool. More...
#include "main.h"
Go to the source code of this file.
Enumerations | |
enum | MainState_type { eevt_initialize, command_decode, sampling_data_get, apply_parameters, contact_gui, emitter_control } |
Functions | |
static void | callback_setup () |
assigns read and status functions interrupts More... | |
static void | demo_board_sensor_control (int state) |
Changes the state of all the CS lines as used on the IRPyro backplane board. More... | |
static void | eevt (MainState_type state) |
IRPyro evaluation tool state machine. More... | |
static void | fn_apply_parameters (void) |
changes parameters from one or more sensors More... | |
static void | fn_command_decode (void) |
static void | fn_contact_gui (void) |
changes parameters from one or more sensors More... | |
static void | fn_eevt_initialize (void) |
Initializes board and populates sensors. More... | |
static void | fn_emitter_control (void) |
configures and control the emitter More... | |
static void | fn_sampling_data_get (void) |
Sends collected data from configured sensors. More... | |
static void | IRPyro_sensor_population (IRPyro_devices this_list, uint8_t *list_size) |
Detect IRPyro sensors present in the demo board. More... | |
int | main (void) |
point of entry for the evaluation tool software More... | |
static void | sensor_configuration (IRPyro_devices this_list) |
sensor array population More... | |
static void | sensor_power_stabilize () |
power cycles the sensors on the board to assure stability More... | |
Variables | |
uint8_t | BoardType = 0x47 |
uint8_t | ChannelConfiguration [NUMBER_OF_SCOPES_IN_THE_GUI] = {0,0x03,0x08,0x0D,0x12,0,0} |
uint8_t | cmd_decoded = 0 |
decodes a command from the USART. More... | |
uint8_t | DarkPixelState = 0x00 |
uint16_t | EmitterOFFTime = 50 |
uint16_t | EmitterONTime = 50 |
uint8_t | EmitterStatus = 0 |
uint8_t | error_flag = 0 |
uint8_t | FailureFlags = 0x00 |
IRPyro_devices | IRPyro_device = {0} |
IRPyro_arg_type | IRPyro_device_arg = {0} |
IRPyro_cmd_type | IRPyro_device_cmd = {0} |
uint8_t | isStatus = 1 |
uint8_t | isStreaming = 0 |
uint8_t | mode_lowPower |
uint8_t | mode_sleeping |
uint8_t | num_of_IRPyro_on_demo_board = NUMBER_IRPyro |
EXTernal_callback | pointer_to_read_function = fn_sampling_data_get |
TIM_callback | pointer_to_status_function = NULL |
EXTernal_callback | pointer_to_wakeup_function = fn_apply_parameters |
uint8_t | sensor_destination = 0 |
static MainState_type | state = eevt_initialize |
uint8_t | status_need_to_send = 1 |
uint8_t | UnitID [2] = {0xda,0xde} |
IRPyro messaging application to communicate with the IRPyro evaluation tool.
=============================================================================== ##### Description ##### =============================================================================== [..] Main function of IRPyro evaluation tool firmware - Initialize micro-controller and board - Detect sensors present - Configure sensors - Stream sampling data via UART to the IRPyro evaluation tool GUI [..]
Copyright (c) 2018, _KEMET, Ltd All rights reserved. THIS SOFTWARE IS PROVIDED BY _KEMET, Ltd ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL _KEMET, Ltd BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file main.c.
enum MainState_type |
uint8_t ChannelConfiguration[NUMBER_OF_SCOPES_IN_THE_GUI] = {0,0x03,0x08,0x0D,0x12,0,0} |
uint8_t EmitterStatus = 0 |
uint8_t num_of_IRPyro_on_demo_board = NUMBER_IRPyro |
|
static |