w1_write_8 (9) Linux Manual Page
w1_write_8 – Writes 8 bits. Synopsis void w1_write_8(struct w1_master *dev, u8 byte); Arguments dev the master device byte the byte to write Author David Fries <David [at] Fries.net> Author. Copyright
w1_write_8 – Writes 8 bits. Synopsis void w1_write_8(struct w1_master *dev, u8 byte); Arguments dev the master device byte the byte to write Author David Fries <David [at] Fries.net> Author. Copyright
w1_unregister_family – unregister a device family driver Synopsis void w1_unregister_family(struct w1_family *fent); Arguments fent family to unregister Author David Fries <David [at] Fries.net> Author. Copyright
w1_triplet – * Does a triplet – used for searching ROM addresses. Synopsis u8 w1_triplet(struct w1_master * dev, int bdir); Arguments dev the master device bdir the bit to write if both id_bit and comp_bit are 0 Description Return bits: bit 0 = id_bit bit 1 = comp_bit bit 2 = dir_taken If both bits 0 & 1…
w1_touch_block – Touches a series of bytes. Synopsis void w1_touch_block(struct w1_master *dev, u8 *buf, int len); Arguments dev the master device buf pointer to the data to write len the number of bytes to write Author David Fries <David [at] Fries.net> Author. Copyright
w1_touch_bit – Generates a write-0 or write-1 cycle and samples the level. Synopsis u8 w1_touch_bit(struct w1_master * dev, int bit); Arguments dev the master device bit 0 – write a 0, 1 – write a 0 read the level Author David Fries <David [at] Fries.net> Author. Copyright
w1_search – Performs a ROM Search & registers any devices found. Synopsis void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb); Arguments dev The master device to search search_type W1_SEARCH to search all devices, or W1_ALARM_SEARCH to return only devices in the alarmed state cb Function to call when a device is found Description The 1-wire…
w1_reset_select_slave – reset and select a slave Synopsis int w1_reset_select_slave(struct w1_slave *sl); Arguments sl the slave to select Description Resets the bus and then selects the slave by sending either a skip rom or a rom match. A skip rom is issued if there is only one device registered on the bus. The w1 master…
w1_reset_resume_command – resume instead of another match ROM Synopsis int w1_reset_resume_command(struct w1_master *dev); Arguments dev the master device Description When the workflow with a slave amongst many requires several successive commands a reset between each, this function is similar to doing a reset then a match ROM for the last matched ROM. The advantage being…
w1_reset_bus – Issues a reset bus sequence. Synopsis int w1_reset_bus(struct w1_master *dev); Arguments dev the master device Return 0=Device present, 1=No device present or error Author David Fries <David [at] Fries.net> Author. Copyright
w1_remove_master_device – unregister a master device Synopsis void w1_remove_master_device(struct w1_bus_master *bm); Arguments bm master bus device to remove Author David Fries <David [at] Fries.net> Author. Copyright
w1_register_family – register a device family driver Synopsis int w1_register_family(struct w1_family *newf); Arguments newf family to register Author David Fries <David [at] Fries.net> Author. Copyright
w1_read_block – Reads a series of bytes. Synopsis u8 w1_read_block(struct w1_master * dev, u8 * buf, int len); Arguments dev the master device buf pointer to the buffer to fill len the number of bytes to read Return the number of bytes read Author David Fries <David [at] Fries.net> Author. Copyright
w1_read_bit – Generates a write-1 cycle and samples the level. Synopsis u8 w1_read_bit(struct w1_master * dev); Arguments dev the master device Description Only call if dev->bus_master->touch_bit is NULL Author David Fries <David [at] Fries.net> Author. Copyright
w1_read_8 – Reads 8 bits. Synopsis u8 w1_read_8(struct w1_master * dev); Arguments dev the master device Return the byte read Author David Fries <David [at] Fries.net> Author. Copyright
w1_process_callbacks – execute each dev->async_list callback entry Synopsis int w1_process_callbacks(struct w1_master *dev); Arguments dev w1_master device Description The w1 master list_mutex must be held. Return 1 if there were commands to executed 0 otherwise Author David Fries <David [at] Fries.net> Author. Copyright
w1_pre_write – pre-write operations Synopsis void w1_pre_write(struct w1_master *dev); Arguments dev the master device Description Pre-write operation, currently only supporting strong pullups. Program the hardware for a strong pullup, if one has been requested and the hardware supports it. Author David Fries <David [at] Fries.net> Author. Copyright
w1_post_write – post-write options Synopsis void w1_post_write(struct w1_master *dev); Arguments dev the master device Description Post-write operation, currently only supporting strong pullups. If a strong pullup was requested, clear it if the hardware supports them, or execute the delay otherwise, in either case clear the request. Author David Fries <David [at] Fries.net> Author. Copyright
w1_next_pullup – register for a strong pullup Synopsis void w1_next_pullup(struct w1_master *dev, int delay); Arguments dev the master device delay time in milliseconds Description Put out a strong pull-up of the specified duration after the next write operation. Not all hardware supports strong pullups. Hardware that doesn’t support strong pullups will sleep for the given…
w1_add_master_device – registers a new master device Synopsis int w1_add_master_device(struct w1_bus_master *master); Arguments master master bus device to register Author David Fries <David [at] Fries.net> Author. Copyright
vzalloc_node – allocate memory on a specific node with zero fill Synopsis void *vzalloc_node(unsigned long size, int node); Arguments size allocation size node numa node Description Allocate enough pages to cover size from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero. For tight control…