Send a 32-bit value over SPI Keyword arguments: MessageType -- the SPI message type Value -- the value to be sent
(self, MessageType, Value)
| 295 | return 0 |
| 296 | |
| 297 | def spi_write_32(self, MessageType, Value): |
| 298 | """ |
| 299 | Send a 32-bit value over SPI |
| 300 | |
| 301 | Keyword arguments: |
| 302 | MessageType -- the SPI message type |
| 303 | Value -- the value to be sent |
| 304 | """ |
| 305 | outArray = [self.SPI_Address, MessageType,\ |
| 306 | ((Value >> 24) & 0xFF), ((Value >> 16) & 0xFF), ((Value >> 8) & 0xFF), (Value & 0xFF)] |
| 307 | self.spi_transfer_array(outArray) |
| 308 | |
| 309 | def get_manufacturer(self): |
| 310 | """ |
nothing calls this directly
no test coverage detected