################################################################################ # Program property of SPISim LLC # (C) Copyright SPISim LLC, 2016 ~ 2017 # All Rights Reserved # # This program is the property of SPISim LLC. and is furnished pursuant to a # written license agreement. It may not be used, reproduced, or disclosed to # others except in accordance with the terms and conditions of that agreement. ################################################################################ from AMIPyProxy import * ################################################################################ # Example Python program for SPISimProxy ################################################################################ class AMIPython(TAMIInterface): def __init__(self): TAMIInterface.__init__(self) ############################ AMI_Init Function ############################# def AMI_Init(self, args): # args contains the following fields # arg.impulse_matrix # arg.number_of_rows # arg.aggressors # arg.sample_interval # arg.bit_time # arg.AMI_parameters_in # arg.AMI_parameters_out # arg.AMI_memory_handle # arg.msg # perform your data manipulation here # must return original arguments to complete transaction return args ########################### AMI_GetWave Function ########################### def AMI_GetWave(self, args): # args contains the following fields # arg.wave # arg.wave_size # arg.clock_times # arg.AMI_parameters_out # arg.AMI_memory # perform your data manipulation here # must return original arguments to complete transaction return args ######################### AMI_Resolve Function ############################# def AMI_Resolve(self, args): # args contains the following fields # arg.bit_time # arg.AMI_parameters_in # arg.AMI_parameters_out # perform your data manipulation here # must return original arguments to complete transaction return args ######################## AMI_Resolve_Close Function ######################## def AMI_Resolve_Close(self, args): # args contains the following fields # arg.AMI_memory # perform your data manipulation here # must return original arguments to complete transaction return args ########################### AMI_Close Function ############################# def AMI_Close(self, args): # args contains the following fields # arg.AMI_memory # perform your data manipulation here # must return original arguments to complete transaction return args