#NEWLINE# def _get_max_speed( self ) : #NEWLINE# #INDENT# buf = array . array ( 'I' , [ 0 ] ) #NEWLINE# try : #NEWLINE# #INDENT# fcntl . ioctl ( self . _fd , SPI . _SPI_IOC_RD_MAX_SPEED_HZ , e , True ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# raise SPIError ( e . errno , ( 'Getting SPI max speed: ' + e . strerror ) ) #NEWLINE# #UNINDENT# return buf [ 0 ]