Am 08.12.2014 um 19:14 schrieb Csillag Kristof:
> On 2014-12-08 18:35, Colin Reese wrote:
>> Check the datasheet. These parameters are well-documented.
> 
> I tried to.
> 
> I looked at http://datasheets.maximintegrated.com/en/ds/DS1921G.pdf
> 
> It does not seem to contain the word "easystart".
> 
>From owfs/module/owlib/src/c/ow_1921.c:

static ZERO_OR_ERROR FS_easystart(struct one_wire_query *owq)
{
  /* write 0x020E -- 0x0214 */
  BYTE data[] = { 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };

  /* clear memory */
  RETURN_BAD_IF_BAD( OW_clearmemory(PN(owq))) ;

  /* Stop clock, no rollover, no delay, temp alarms on, alarms cleared */
  if ( BAD( OW_w_mem(data, 7, 0x020E, PN(owq)) ) ) {
    return -EINVAL;
  }

  return GB_to_Z_OR_E( OW_startmission(OWQ_U(owq), PN(owq)) );
}


When easystart is written (anything), this function writes clears the
chip memory and writes 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 into
0x020e at further.

It sets -EOSC, TLS, THS in the control register and clears the
temperature, start delay and status registers.

Kind regards

        Jan

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to