OWOUT
 
Syntax


int OWOUT (int pin, int cnt, char *outList) ;

// OWOUT returns TRUE if the device was present and responding

Description

OWOUT begins with a RESET/Presence sequence on the designated Pin.

Following that cntbytes of the character array outListwill be sent to the device.

The bit order for the 1-Wire device is assumed to be LSB (bit 0) first. 

If a one-wire device responds the function returns 1, else 0.

Example

   case 40:   // test the EEPROM of a DS2430 on pin 7
    shortMessage[0] = 0xCC;
    shortMessage[1] = 0x0F;
    shortMessage[2] = 0x00;
    shortMessage[3] = 0x44;
    shortMessage[4] = 0x11;
    shortMessage[5] = 0x22;
    shortMessage[6] = 0xBE;
    
    present = OWOUT(7, 7, shortMessage);
    OWIN(7, 0xCC, 0xAA, 0, -1, -1, -1, 4, shortResponse);
    

See also