var searchIndex = {}; searchIndex["sysfs_gpio"] = {"doc":"GPIO access under Linux using the GPIO sysfs interface","items":[[3,"Pin","sysfs_gpio","",null,null],[3,"PinPoller","","",null,null],[4,"Error","","",null,null],[13,"Io","","Simple IO error",0,null],[13,"Unexpected","","Read unusual data from sysfs file.",0,null],[13,"InvalidPath","","Invalid Path",0,null],[4,"Direction","","",null,null],[13,"In","","",1,null],[13,"Out","","",1,null],[13,"High","","",1,null],[13,"Low","","",1,null],[4,"Edge","","",null,null],[13,"NoInterrupt","","",2,null],[13,"RisingEdge","","",2,null],[13,"FallingEdge","","",2,null],[13,"BothEdges","","",2,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[6,"Result","","",null,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"new","","Create a new Pin with the provided `pin_num`",3,{"inputs":[{"name":"u64"}],"output":{"name":"pin"}}],[11,"from_path","","Create a new Pin with the provided path",3,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[11,"get_pin_num","","Get the pin number",3,null],[11,"with_exported","","Run a closure with the GPIO exported",3,null],[11,"is_exported","","Determines whether the GPIO is exported",3,null],[11,"export","","Export the GPIO",3,null],[11,"unexport","","Unexport the GPIO",3,null],[11,"get_pin","","Get the pin number for the Pin",3,null],[11,"get_direction","","Get the direction of the Pin",3,null],[11,"set_direction","","Set this GPIO as either an input or an output",3,null],[11,"get_value","","Get the value of the Pin (0 or 1)",3,null],[11,"set_value","","Set the value of the Pin",3,null],[11,"get_edge","","Get the currently configured edge for this pin",3,null],[11,"set_edge","","Set the edge on which this GPIO will trigger when polled",3,null],[11,"get_poller","","Get a PinPoller object for this pin",3,null],[11,"fmt","","",4,null],[11,"get_pin","","Get the pin associated with this PinPoller",4,null],[11,"new","","Create a new PinPoller for the provided pin number",4,{"inputs":[{"name":"u64"}],"output":{"name":"result"}}],[11,"poll","","Block until an interrupt occurs",4,null],[11,"drop","","",4,null],[14,"try_unexport!","","",null,null]],"paths":[[4,"Error"],[4,"Direction"],[4,"Edge"],[3,"Pin"],[3,"PinPoller"]]}; initSearch(searchIndex);