Arrow3-MBN-APP
 
Loading...
Searching...
No Matches
discovery.c File Reference

Source that handles the discovery part of all module details. More...

#include "AppGlobal.h"
#include "../Header/API_Header/AppDataInterface.h"
Include dependency graph for discovery.c:

Functions

void retrieveAndCopyHandlers (uint16_t *(*getHandlerFunc)(void), uint16_t *destArray, const char *moduleName, uint16_t maxHandlers)
 Helper function to retrieve and copy handlers.
 
void retrieveAndCopyHandlersWithArg (uint16_t *(*getHandlerFunc)(uint16_t), uint16_t *destArray, const char *moduleName, uint16_t maxHandlers, uint16_t handler, uint16_t *count)
 Helper function to retrieve and copy handlers with arguments.
 
int start_discovery ()
 Function that processes the discovery details.
 
int fetch_pressure_zone_handlers (uint8_t pz_count)
 Function that fetches all the individual pressure zone handler details.
 
int fetch_prop_zone_details (uint8_t prop_zone_count)
 Function that fetches all the individual property zone details.
 
int get_pin_details ()
 

Variables

s_discovery_details discover_details
 
s_prszone_device_count_details pz_count_details [MACRO_MAX_PRESSURE_ZONE]
 
uint16_t mbn_handler_linux
 
uint16_t di_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t do_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t dio_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t ai_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t ao_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t aio_handlers [MACRO_MAX_IO_HANDLERS] = {0}
 
uint16_t pz_handlers [MACRO_MAX_PZ_HANDLERS] = {0}
 
uint16_t prop_zone_handlers [MACRO_MAX_PROP_ZONE_HANDLERS] = {0}
 
uint16_t isemdiag_handlers [MACRO_MAX_ISEM_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}
 
uint16_t diag_handlers [MACRO_MAX_DIAG_VALVE_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}
 
uint16_t standard_valve_handlers [MACRO_MAX_STANDARD_VALVE_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}
 
uint16_t prop_station_handlers [MACRO_MAX_PROP_STATION_PER_ZONE *MACRO_MAX_PRESSURE_ZONE] = {0}
 
uint16_t g_isemdiag_count = 0
 
uint16_t g_diagvalve_count = 0
 
uint16_t g_propstation_count = 0
 
uint16_t g_standardvalve_count = 0
 
uint8_t g_total_digital_count = 0
 
uint8_t g_total_analog_count = 0
 
uint8_t g_total_io_count = 0
 
uint8_t g_total_count = 0
 
uint8_t g_start_flag = 0
 

Detailed Description

Source that handles the discovery part of all module details.

Function Documentation

◆ fetch_pressure_zone_handlers()

int fetch_pressure_zone_handlers ( uint8_t pz_count)

Function that fetches all the individual pressure zone handler details.

Parameters
pz_countThe number of pressure zones to fetch details for
Returns
API_SUCCESS_test
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetch_prop_zone_details()

int fetch_prop_zone_details ( uint8_t prop_zone_count)

Function that fetches all the individual property zone details.

Parameters
prop_zone_countThe number of property zones to fetch details for
Returns
API_SUCCESS_test
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_pin_details()

int get_pin_details ( )
extern
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retrieveAndCopyHandlers()

void retrieveAndCopyHandlers ( uint16_t *(* getHandlerFunc )(void),
uint16_t * destArray,
const char * moduleName,
uint16_t maxHandlers )

Helper function to retrieve and copy handlers.

Here is the caller graph for this function:

◆ retrieveAndCopyHandlersWithArg()

void retrieveAndCopyHandlersWithArg ( uint16_t *(* getHandlerFunc )(uint16_t),
uint16_t * destArray,
const char * moduleName,
uint16_t maxHandlers,
uint16_t handler,
uint16_t * count )

Helper function to retrieve and copy handlers with arguments.

Here is the caller graph for this function:

◆ start_discovery()

int start_discovery ( )

Function that processes the discovery details.

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

Variable Documentation

◆ ai_handlers

uint16_t ai_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ aio_handlers

uint16_t aio_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ ao_handlers

uint16_t ao_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ di_handlers

uint16_t di_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ diag_handlers

uint16_t diag_handlers[MACRO_MAX_DIAG_VALVE_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}

◆ dio_handlers

uint16_t dio_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ discover_details

s_discovery_details discover_details

◆ do_handlers

uint16_t do_handlers[MACRO_MAX_IO_HANDLERS] = {0}

◆ g_diagvalve_count

uint16_t g_diagvalve_count = 0

◆ g_isemdiag_count

uint16_t g_isemdiag_count = 0

◆ g_propstation_count

uint16_t g_propstation_count = 0

◆ g_standardvalve_count

uint16_t g_standardvalve_count = 0

◆ g_start_flag

uint8_t g_start_flag = 0

◆ g_total_analog_count

uint8_t g_total_analog_count = 0

◆ g_total_count

uint8_t g_total_count = 0

◆ g_total_digital_count

uint8_t g_total_digital_count = 0

◆ g_total_io_count

uint8_t g_total_io_count = 0

◆ isemdiag_handlers

uint16_t isemdiag_handlers[MACRO_MAX_ISEM_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}

◆ mbn_handler_linux

uint16_t mbn_handler_linux

◆ prop_station_handlers

uint16_t prop_station_handlers[MACRO_MAX_PROP_STATION_PER_ZONE *MACRO_MAX_PRESSURE_ZONE] = {0}

◆ prop_zone_handlers

uint16_t prop_zone_handlers[MACRO_MAX_PROP_ZONE_HANDLERS] = {0}

◆ pz_count_details

s_prszone_device_count_details pz_count_details[MACRO_MAX_PRESSURE_ZONE]

◆ pz_handlers

uint16_t pz_handlers[MACRO_MAX_PZ_HANDLERS] = {0}

◆ standard_valve_handlers

uint16_t standard_valve_handlers[MACRO_MAX_STANDARD_VALVE_PER_PZZONE *MACRO_MAX_PRESSURE_ZONE] = {0}