ingenialink/ecat/net.c
static int *il_ecat_net_remove_all_mapped_registers(il_net_t *net)
{
	int r = 0;
	il_ecat_net_t *this = to_ecat_net(net);

	// Check the Monitoring/Disturbance version
	uint32_t mon_dist_version = 0;
	r = il_net__read(&this->net, 1, 0, 0x00BA, &mon_dist_version, sizeof(uint32_t));
	if (r < 0) {
		// Old monitoring implementation
		r = il_ecat_net_remove_all_mapped_registers_v1(net);
	}
	else {
		r = il_ecat_net_remove_all_mapped_registers_v2(net);
	}

	return r;
}
// Monitoring ECAT
/**
* Monitoring remove all mapped registers
*/
Monitoring ECAT
Monitoring remove all mapped registers
Monitoring ECAT Monitoring remove all mapped registers
static int *il_ecat_net_remove_all_mapped_registers(il_net_t *net)
{
	int r = 0;
	il_ecat_net_t *this = to_ecat_net(net);
	uint32_t mon_dist_version = 0;
	r = il_net__read(&this->net, 1, 0, 0x00BA, &mon_dist_version, sizeof(uint32_t));
	if (r < 0) {
		r = il_ecat_net_remove_all_mapped_registers_v1(net);
	}
	else {
		r = il_ecat_net_remove_all_mapped_registers_v2(net);
	}
	return r;
}
static int * il_ecat_net_remove_all_mapped_registers ( il_net_t * net ) { int r = 0 ; il_ecat_net_t * this = to_ecat_net ( net ) ; uint32_t mon_dist_version = 0 ; r = il_net__read ( & this -> net , 1 , 0 , 0x00BA , & mon_dist_version , sizeof ( uint32_t ) ) ; if ( r < 0 ) { r = il_ecat_net_remove_all_mapped_registers_v1 ( net ) ; } else { r = il_ecat_net_remove_all_mapped_registers_v2 ( net ) ; } return r ; }
Monitoring ECAT
Monitoring remove all mapped registers
Monitoring ECAT Monitoring remove all mapped registers
// Check the Monitoring/Disturbance version // Old monitoring implementation