var searchIndex = {}; searchIndex["spidev"] = {"doc":"# Spidev","items":[[3,"SpiModeFlags","spidev","",null,null],[3,"Spidev","","Provide high-level access to Linux Spidev Driver",null,null],[3,"SpidevOptions","","Options that control defaults for communication on a device",null,null],[12,"bits_per_word","","",0,null],[12,"max_speed_hz","","",0,null],[12,"lsb_first","","",0,null],[12,"spi_mode","","",0,null],[0,"spidevioctl","","",null,null],[3,"spi_ioc_transfer","spidev::spidevioctl","Structure that is used when performing communication\nwith the kernel.",null,null],[12,"tx_buf","","",1,null],[12,"rx_buf","","",1,null],[12,"len","","",1,null],[12,"speed_hz","","",1,null],[12,"delay_usecs","","",1,null],[12,"bits_per_word","","",1,null],[12,"cs_change","","",1,null],[12,"pad","","",1,null],[3,"SpidevTransfer","","Representation of a spidev transfer that is shared\nwith external users",null,null],[12,"tx_buf","","",2,null],[12,"rx_buf","","",2,null],[5,"get_mode","","",null,{"inputs":[{"name":"rawfd"}],"output":{"name":"result"}}],[5,"set_mode","","",null,{"inputs":[{"name":"rawfd"},{"name":"spimodeflags"}],"output":{"name":"result"}}],[5,"get_lsb_first","","",null,{"inputs":[{"name":"rawfd"}],"output":{"name":"result"}}],[5,"set_lsb_first","","",null,{"inputs":[{"name":"rawfd"},{"name":"bool"}],"output":{"name":"result"}}],[5,"get_bits_per_word","","",null,{"inputs":[{"name":"rawfd"}],"output":{"name":"result"}}],[5,"set_bits_per_word","","",null,{"inputs":[{"name":"rawfd"},{"name":"u8"}],"output":{"name":"result"}}],[5,"get_max_speed_hz","","",null,{"inputs":[{"name":"rawfd"}],"output":{"name":"result"}}],[5,"set_max_speed_hz","","",null,{"inputs":[{"name":"rawfd"},{"name":"u32"}],"output":{"name":"result"}}],[5,"transfer","","",null,{"inputs":[{"name":"rawfd"},{"name":"spidevtransfer"}],"output":{"name":"result"}}],[5,"transfer_multiple","","",null,{"inputs":[{"name":"rawfd"},{"name":"vec"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"default","","",2,{"inputs":[],"output":{"name":"spidevtransfer"}}],[11,"read","","",2,{"inputs":[{"name":"usize"}],"output":{"name":"spidevtransfer"}}],[11,"write","","",2,null],[17,"SPI_CPHA","spidev","Clock Phase",null,null],[17,"SPI_CPOL","","Clock Polarity",null,null],[17,"SPI_CS_HIGH","","Chipselect Active High?",null,null],[17,"SPI_LSB_FIRST","","Per-word Bits On Wire",null,null],[17,"SPI_3WIRE","","SI/SO Signals Shared",null,null],[17,"SPI_LOOP","","Loopback Mode",null,null],[17,"SPI_NO_CS","","1 dev/bus, no chipselect",null,null],[17,"SPI_READY","","Slave pulls low to pause",null,null],[17,"SPI_MODE_0","","",null,null],[17,"SPI_MODE_1","","",null,null],[17,"SPI_MODE_2","","",null,null],[17,"SPI_MODE_3","","",null,null],[17,"SPI_TX_DUAL","","Transmit with 2 wires",null,null],[17,"SPI_TX_QUAD","","Transmit with 4 wires",null,null],[17,"SPI_RX_DUAL","","Receive with 2 wires",null,null],[17,"SPI_RX_QUAD","","Receive with 4 wires",null,null],[11,"hash","","",3,null],[11,"cmp","","",3,null],[11,"partial_cmp","","",3,null],[11,"lt","","",3,null],[11,"le","","",3,null],[11,"gt","","",3,null],[11,"ge","","",3,null],[11,"clone","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"empty","","Returns an empty set of flags.",3,{"inputs":[],"output":{"name":"spimodeflags"}}],[11,"all","","Returns the set containing all flags.",3,{"inputs":[],"output":{"name":"spimodeflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",3,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",3,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",3,{"inputs":[{"name":"u32"}],"output":{"name":"spimodeflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",3,null],[11,"is_all","","Returns `true` if all flags are currently set.",3,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",3,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",3,null],[11,"insert","","Inserts the specified flags in-place.",3,null],[11,"remove","","Removes the specified flags in-place.",3,null],[11,"toggle","","Toggles the specified flags in-place.",3,null],[11,"bitor","","Returns the union of the two sets of flags.",3,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",3,null],[11,"bitand","","Returns the intersection between the two sets of flags.",3,null],[11,"sub","","Returns the set difference of the two sets of flags.",3,null],[11,"not","","Returns the complement of this set of flags.",3,null],[11,"from_iter","","",3,{"inputs":[{"name":"t"}],"output":{"name":"spimodeflags"}}],[11,"clone","","",0,null],[11,"new","","Create a new, empty set of options",0,{"inputs":[],"output":{"name":"spidevoptions"}}],[11,"bits_per_word","","The number of bits in each SPI transfer word",0,null],[11,"max_speed_hz","","The maximum SPI transfer speed, in Hz",0,null],[11,"lsb_first","","The bit justification used to transfer SPI words",0,null],[11,"mode","","Set the SPI Transfer Mode",0,null],[11,"build","","Finalize and build the SpidevOptions",0,null],[11,"open","","Open the spidev device with the provided path",4,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"configure","","Write the provided configuration to this device",4,null],[11,"transfer","","Perform a single transfer",4,null],[11,"transfer_multiple","","Perform multiple transfers in a single system call to the kernel",4,null],[11,"read","","",4,null],[11,"write","","",4,null],[11,"flush","","",4,null]],"paths":[[3,"SpidevOptions"],[3,"spi_ioc_transfer"],[3,"SpidevTransfer"],[3,"SpiModeFlags"],[3,"Spidev"]]}; initSearch(searchIndex);