owll (9)
Leading comments
Copyright (c) 2015 M. Warner Losh All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PRO...
NAME
owll OWLL_WRITE_ONE, OWLL_WRITE_ZERO, OWLL_READ_DATA, OWLL_REASET_AND_PRESENCE - Dallas Semiconductor 1-Wire Link Layer InterfaceSYNOPSIS
Ft int Fn OWLL_WRITE_ONE device_t lldev struct ow_timing *timing Ft int Fn OWLL_WRITE_ZERO device_t lldev struct ow_timing *timing Ft int Fn OWLL_READ_DATA device_t lldev struct ow_timing *timing int *bit Ft int Fn OWLL_RESET_AND_PRESENCE device_t lldev struct ow_timing *timing int *bitDESCRIPTION
The interface provides access to the link layer of the Dallas Semiconductor 1-Wire from upper layers of the protocol.Fn OWLL_WRITE_ONE and Fn OWLL_WRITE_ZERO writes a one bitor a zero bit respectively on the 1-Wire bus.
Fn OWLL_READ_DATA reads one bit from the 1-Wire bus. This is often referred to as a ``Read Time Slot'' in the 1-Wire device data sheets.
The Fn OWLL_RESET_AND_PRESENCE function starts a reset sequence and detects if any device(s) are present on the bus. This is the beginning of all 1-Wire transactions.