Return tdata when AxiStreamFrame is cast to bytes
This commit is contained in:
@@ -208,6 +208,9 @@ class AxiStreamFrame(object):
|
||||
def __iter__(self):
|
||||
return self.tdata.__iter__()
|
||||
|
||||
def __bytes__(self):
|
||||
return bytes(self.tdata)
|
||||
|
||||
|
||||
class AxiStreamSource(object):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user