Systronix_utilities.cpp
//---------------------------< F W _ R E S E T >--------------------------------------------------------------
//
// firmware reset.
//
// Call this function with a value of 0, 1, 2, or 3:
//		0 - release resets
//		1 - assert PERIF_RST
//		2 - assert ETHER_RST
//		3 - assert both
//
// Duration of the asserted reset signal(s) is determined by the calling function
//
// NOTE: hardware reset of the 9557s puts their I/O pins in input mode.  These devices should be initialized
// as soon as practicable following the release of PERIPH_RST.
//
< F W _ R E S E T >
firmware reset.

Call this function with a value of 0, 1, 2, or 3:
0 - release resets
1 - assert PERIF_RST
2 - assert ETHER_RST
3 - assert both

Duration of the asserted reset signal(s) is determined by the calling function

hardware reset of the 9557s puts their I/O pins in input mode.  These devices should be initialized
as soon as practicable following the release of PERIPH_RST.
< F W _ R E S E T > firmware reset . Call this function with a value of 0 1 2 or 3 : 0 - release resets 1 - assert PERIF_RST 2 - assert ETHER_RST 3 - assert both Duration of the asserted reset signal ( s ) is determined by the calling function hardware reset of the 9557s puts their I / O pins in input mode . These devices should be initialized as soon as practicable following the release of PERIPH_RST .
void Systronix_utilities::fw_reset (uint8_t rst)
	{
	if (rst & RST_P)
		digitalWrite(PERIPH_RST, LOW);		
	if (rst & RST_E)
		digitalWrite(ETHER_RST, LOW);
	if (0 == rst)
		{
		digitalWrite(PERIPH_RST, HIGH);		
		digitalWrite(ETHER_RST, HIGH);
		}
	}
void Systronix_utilities :: fw_reset ( uint8_t rst ) { if ( rst & RST_P ) digitalWrite ( PERIPH_RST , LOW ) ; if ( rst & RST_E ) digitalWrite ( ETHER_RST , LOW ) ; if ( 0 == rst ) { digitalWrite ( PERIPH_RST , HIGH ) ; digitalWrite ( ETHER_RST , HIGH ) ; } }
< F W _ R E S E T >
firmware reset.
< F W _ R E S E T > firmware reset .
// resets asserted // resets released