CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
cryptoauthlib.library.AtcaUnion Class Reference
Inheritance diagram for cryptoauthlib.library.AtcaUnion:
cryptoauthlib.iface._ATCAIfaceParams cryptoauthlib.iface._U_Address

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def from_definition (cls)
 
def check_rationality (cls)
 
def get_field_definition (cls, str name)
 
Any __getattribute__ (self, str name)
 
def __iter__ (self)
 
def __str__ (self)
 
def to_c_code (self, name=None, **kwargs)
 
def update_from_buffer (self, buffer)
 

Protected Attributes

 _selected
 

Detailed Description

 An extended ctypes structure to accept complex inputs 

Member Function Documentation

◆ check_rationality()

def cryptoauthlib.library.AtcaUnion.check_rationality (   cls)
Perform a rationality check on the structure definition against the expected definition by
checking structure sizes between the compiled library and the python library

◆ from_definition()

def cryptoauthlib.library.AtcaUnion.from_definition (   cls)
Trigger _field_ creation from the values provided in _def_ - must be run before the class
is instantiated