TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
bcu.Bcu Class Reference
Inheritance diagram for bcu.Bcu:
Inheritance graph
Collaboration diagram for bcu.Bcu:
Collaboration graph

Public Member Functions

def __init__ (self, ipAddress, bcuUdpPort, localUdpPort, microgateToolsDirectory)
 
def setMessageId (self, id)
 
def writeDsp (self, firstDsp, lastDsp, memoryAddress, value)
 
def readDsp (self, dsp, memoryAddress)
 
def writeSdram (self, firstDsp, lastDsp, memoryAddress, value)
 
def readSdram (self, dsp, memoryAddress)
 
def writeSram (self, firstDsp, lastDsp, memoryAddress, value)
 
def readSram (self, dsp, memoryAddress)
 
def writeCcdi (self, firstDsp, lastDsp, memoryAddress, value)
 
def readCcdi (self, dsp, memoryAddress)
 
def resetDevices (self, firstDsp, lastDsp, values)
 
def enableMasterDiagnostic (self, decimationFactor, remoteIpv4Address, remoteMacAddress, remoteUdpPortNr)
 
def uploadDspCode (self, firstDsp, lastDsp, dspProgramFilePath)
 
def uploadLookUpTable (self, lookUpTableFilePath)
 
def ceiling (self, n, multiple)
 
def __init__ (self, ipAddress, bcuUdpPort, localUdpPort, microgateToolsDirectory)
 
def setMessageId (self, id)
 
def writeDsp (self, firstDsp, lastDsp, memoryAddress, value)
 
def readDsp (self, dsp, memoryAddress)
 
def writeSdram (self, firstDsp, lastDsp, memoryAddress, value)
 
def readSdram (self, dsp, memoryAddress)
 
def writeSram (self, firstDsp, lastDsp, memoryAddress, value)
 
def readSram (self, dsp, memoryAddress)
 
def writeCcdi (self, firstDsp, lastDsp, memoryAddress, value)
 
def readCcdi (self, dsp, memoryAddress)
 
def resetDevices (self, firstDsp, lastDsp, values)
 
def enableMasterDiagnostic (self, decimationFactor, remoteIpv4Address, remoteMacAddress, remoteUdpPortNr)
 
def uploadDspCode (self, firstDsp, lastDsp, dspProgramFilePath)
 
def uploadLookUpTable (self, lookUpTableFilePath)
 
def ceiling (self, n, multiple)
 

Static Public Member Functions

def floatToDword (f)
 
def dwordToFloat (dword)
 
def floatToDword (f)
 
def dwordToFloat (dword)
 

Public Attributes

 ipAddress_
 
 bcuPortNr_
 
 localPortNr_
 
 messageId_
 
 microgateToolsDirectory_
 
 preloadedPixelStartAddress_
 
 OFFSET
 
 LENGTH
 

Private Member Functions

def _read (self, toolPath, dsp, memoryAddress)
 
def _splitAndWrite (self, toolPath, firstDsp, lastDsp, memoryAddress, values)
 
def _write (self, toolPath, firstDsp, lastDsp, memoryAddress, values)
 
def _invokeProgram (self, commandLine)
 
def _panic (self, message)
 
def _getNextMessageId (self)
 
def _getWriteCommandSplittings (self, startAddress, payload)
 
def _read (self, toolPath, dsp, memoryAddress)
 
def _splitAndWrite (self, toolPath, firstDsp, lastDsp, memoryAddress, values)
 
def _write (self, toolPath, firstDsp, lastDsp, memoryAddress, values)
 
def _invokeProgram (self, commandLine)
 
def _panic (self, message)
 
def _getNextMessageId (self)
 
def _getWriteCommandSplittings (self, startAddress, payload)
 

Detailed Description

This class provides methods to access the different BCU memory types.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def bcu.Bcu.__init__ (   self,
  ipAddress,
  bcuUdpPort,
  localUdpPort,
  microgateToolsDirectory 
)

◆ __init__() [2/2]

def bcu.Bcu.__init__ (   self,
  ipAddress,
  bcuUdpPort,
  localUdpPort,
  microgateToolsDirectory 
)

Member Function Documentation

◆ _getNextMessageId() [1/2]

def bcu.Bcu._getNextMessageId (   self)
private

◆ _getNextMessageId() [2/2]

def bcu.Bcu._getNextMessageId (   self)
private

◆ _getWriteCommandSplittings() [1/2]

def bcu.Bcu._getWriteCommandSplittings (   self,
  startAddress,
  payload 
)
private

◆ _getWriteCommandSplittings() [2/2]

def bcu.Bcu._getWriteCommandSplittings (   self,
  startAddress,
  payload 
)
private

◆ _invokeProgram() [1/2]

def bcu.Bcu._invokeProgram (   self,
  commandLine 
)
private

◆ _invokeProgram() [2/2]

def bcu.Bcu._invokeProgram (   self,
  commandLine 
)
private

◆ _panic() [1/2]

def bcu.Bcu._panic (   self,
  message 
)
private

◆ _panic() [2/2]

def bcu.Bcu._panic (   self,
  message 
)
private

◆ _read() [1/2]

def bcu.Bcu._read (   self,
  toolPath,
  dsp,
  memoryAddress 
)
private

◆ _read() [2/2]

def bcu.Bcu._read (   self,
  toolPath,
  dsp,
  memoryAddress 
)
private

◆ _splitAndWrite() [1/2]

def bcu.Bcu._splitAndWrite (   self,
  toolPath,
  firstDsp,
  lastDsp,
  memoryAddress,
  values 
)
private

◆ _splitAndWrite() [2/2]

def bcu.Bcu._splitAndWrite (   self,
  toolPath,
  firstDsp,
  lastDsp,
  memoryAddress,
  values 
)
private

◆ _write() [1/2]

def bcu.Bcu._write (   self,
  toolPath,
  firstDsp,
  lastDsp,
  memoryAddress,
  values 
)
private

◆ _write() [2/2]

def bcu.Bcu._write (   self,
  toolPath,
  firstDsp,
  lastDsp,
  memoryAddress,
  values 
)
private

◆ ceiling() [1/2]

def bcu.Bcu.ceiling (   self,
  n,
  multiple 
)

◆ ceiling() [2/2]

def bcu.Bcu.ceiling (   self,
  n,
  multiple 
)

◆ dwordToFloat() [1/2]

def bcu.Bcu.dwordToFloat (   dword)
static

◆ dwordToFloat() [2/2]

def bcu.Bcu.dwordToFloat (   dword)
static

◆ enableMasterDiagnostic() [1/2]

def bcu.Bcu.enableMasterDiagnostic (   self,
  decimationFactor,
  remoteIpv4Address,
  remoteMacAddress,
  remoteUdpPortNr 
)

◆ enableMasterDiagnostic() [2/2]

def bcu.Bcu.enableMasterDiagnostic (   self,
  decimationFactor,
  remoteIpv4Address,
  remoteMacAddress,
  remoteUdpPortNr 
)

◆ floatToDword() [1/2]

def bcu.Bcu.floatToDword (   f)
static

◆ floatToDword() [2/2]

def bcu.Bcu.floatToDword (   f)
static

◆ readCcdi() [1/2]

def bcu.Bcu.readCcdi (   self,
  dsp,
  memoryAddress 
)

◆ readCcdi() [2/2]

def bcu.Bcu.readCcdi (   self,
  dsp,
  memoryAddress 
)

◆ readDsp() [1/2]

def bcu.Bcu.readDsp (   self,
  dsp,
  memoryAddress 
)

◆ readDsp() [2/2]

def bcu.Bcu.readDsp (   self,
  dsp,
  memoryAddress 
)

◆ readSdram() [1/2]

def bcu.Bcu.readSdram (   self,
  dsp,
  memoryAddress 
)

◆ readSdram() [2/2]

def bcu.Bcu.readSdram (   self,
  dsp,
  memoryAddress 
)

◆ readSram() [1/2]

def bcu.Bcu.readSram (   self,
  dsp,
  memoryAddress 
)

◆ readSram() [2/2]

def bcu.Bcu.readSram (   self,
  dsp,
  memoryAddress 
)

◆ resetDevices() [1/2]

def bcu.Bcu.resetDevices (   self,
  firstDsp,
  lastDsp,
  values 
)

◆ resetDevices() [2/2]

def bcu.Bcu.resetDevices (   self,
  firstDsp,
  lastDsp,
  values 
)

◆ setMessageId() [1/2]

def bcu.Bcu.setMessageId (   self,
  id 
)

◆ setMessageId() [2/2]

def bcu.Bcu.setMessageId (   self,
  id 
)

◆ uploadDspCode() [1/2]

def bcu.Bcu.uploadDspCode (   self,
  firstDsp,
  lastDsp,
  dspProgramFilePath 
)

◆ uploadDspCode() [2/2]

def bcu.Bcu.uploadDspCode (   self,
  firstDsp,
  lastDsp,
  dspProgramFilePath 
)

◆ uploadLookUpTable() [1/2]

def bcu.Bcu.uploadLookUpTable (   self,
  lookUpTableFilePath 
)

◆ uploadLookUpTable() [2/2]

def bcu.Bcu.uploadLookUpTable (   self,
  lookUpTableFilePath 
)

◆ writeCcdi() [1/2]

def bcu.Bcu.writeCcdi (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeCcdi() [2/2]

def bcu.Bcu.writeCcdi (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeDsp() [1/2]

def bcu.Bcu.writeDsp (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeDsp() [2/2]

def bcu.Bcu.writeDsp (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeSdram() [1/2]

def bcu.Bcu.writeSdram (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeSdram() [2/2]

def bcu.Bcu.writeSdram (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeSram() [1/2]

def bcu.Bcu.writeSram (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

◆ writeSram() [2/2]

def bcu.Bcu.writeSram (   self,
  firstDsp,
  lastDsp,
  memoryAddress,
  value 
)

Member Data Documentation

◆ bcuPortNr_

bcu.Bcu.bcuPortNr_

◆ ipAddress_

bcu.Bcu.ipAddress_

◆ LENGTH

bcu.Bcu.LENGTH

◆ localPortNr_

bcu.Bcu.localPortNr_

◆ messageId_

bcu.Bcu.messageId_

◆ microgateToolsDirectory_

bcu.Bcu.microgateToolsDirectory_

◆ OFFSET

bcu.Bcu.OFFSET

◆ preloadedPixelStartAddress_

bcu.Bcu.preloadedPixelStartAddress_

The documentation for this class was generated from the following file: