Deeploy.Targets.PULPOpen.DataTypes.PULPStructDataTypes
- class Deeploy.Targets.PULPOpen.DataTypes.PULPStructDataTypes
Bases:
object
Methods
- __init__() None
__init__
()- class DMA_copy(structDict: str | Struct | Dict[str, BaseType], ctxt: _NetworkContext | None = None)
Bases:
Struct
- value
the value of the struct; corresponds to an element with type layout defined in cls.structTypeDict
- Type:
structTypeDict
- classmethod checkPromotion(_other: str | Dict[str, BaseType] | Struct, ctxt: _NetworkContext | None = None)
Checks whether a given Python-typed or Deeploy-typed value can be represented with the Deeploy type
- Parameters:
value (Union[_PythonType, _DeeployType]) – Python-typed or Deeploy-typed value to be checked for promotion to cls
ctxt (Optional[_NetworkContext]) – Current NetworkContext
- Returns:
Returns true if the value can be promoted to cls
- Return type:
bool
- classmethod checkValue(value: str | Dict[str, BaseType], ctxt: _NetworkContext | None = None)
Checks whether a given Python-type value (usually FP64) can be represented with a Deeploy type
- Parameters:
value (_PythonType) – Python-typed value to check
ctxt (Optional[_NetworkContext]) – Current NetworkContext
- Returns:
Returns true if value can represented by cls
- Return type:
bool
- structTypeDict: Dict[str, Type[BaseType]] = {'dir': <class 'Deeploy.CommonExtensions.DataTypes.int32_t'>, 'ext': <class 'Deeploy.AbstractDataTypes.voidPtr'>, 'hwc_to_chw': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'length_1d_copy': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'loc': <class 'Deeploy.AbstractDataTypes.voidPtr'>, 'mchan_cmd': <class 'Deeploy.CommonExtensions.DataTypes.uint32_t'>, 'number_of_1d_copies': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'number_of_2d_copies': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'stride_1d': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'stride_2d': <class 'Deeploy.CommonExtensions.DataTypes.uint16_t'>, 'tid': <class 'Deeploy.CommonExtensions.DataTypes.int32_t'>}
The definition of the struct mapping its field names to their associated Deeploy-types
- Type:
Dict[str, Type[BaseType]]
- typeName: str = 'DMA_copy'
The C typename of this type
- Type:
str
- typeWidth: int = 256
the number of BITS to be assigned to the type
- Type:
int
- class pi_cl_ram_req_t(structDict: str | Struct | Dict[str, BaseType], ctxt: _NetworkContext | None = None)
Bases:
Struct
- value
the value of the struct; corresponds to an element with type layout defined in cls.structTypeDict
- Type:
structTypeDict
- classmethod checkPromotion(_other: str | Dict[str, BaseType] | Struct, ctxt: _NetworkContext | None = None)
Checks whether a given Python-typed or Deeploy-typed value can be represented with the Deeploy type
- Parameters:
value (Union[_PythonType, _DeeployType]) – Python-typed or Deeploy-typed value to be checked for promotion to cls
ctxt (Optional[_NetworkContext]) – Current NetworkContext
- Returns:
Returns true if the value can be promoted to cls
- Return type:
bool
- classmethod checkValue(value: str | Dict[str, BaseType], ctxt: _NetworkContext | None = None)
Checks whether a given Python-type value (usually FP64) can be represented with a Deeploy type
- Parameters:
value (_PythonType) – Python-typed value to check
ctxt (Optional[_NetworkContext]) – Current NetworkContext
- Returns:
Returns true if value can represented by cls
- Return type:
bool
- structTypeDict: Dict[str, Type[BaseType]] = {'addr': <class 'Deeploy.AbstractDataTypes.voidPtr'>, 'ext2loc': <class 'Deeploy.CommonExtensions.DataTypes.uint8_t'>, 'is_2d': <class 'Deeploy.CommonExtensions.DataTypes.uint8_t'>, 'length': <class 'Deeploy.CommonExtensions.DataTypes.uint32_t'>, 'pi_ram_addr': <class 'Deeploy.AbstractDataTypes.voidPtr'>, 'size': <class 'Deeploy.CommonExtensions.DataTypes.uint32_t'>, 'stride': <class 'Deeploy.CommonExtensions.DataTypes.uint32_t'>}
The definition of the struct mapping its field names to their associated Deeploy-types
- Type:
Dict[str, Type[BaseType]]
- typeName: str = 'pi_cl_ram_req_t'
The C typename of this type
- Type:
str
- typeWidth: int = 176
the number of BITS to be assigned to the type
- Type:
int