Unable to set/get an interface which has a struct as a parameter

In reply to intcr:

Hard to follow your code as there is a lot of missing information. Which is line 72?

What is pe_wtx_rlc_vld_rdy_req_pins?

Why is there a $unit::DEFAULT_STRUCT_TYPE in the error message. Nothing should be declared in $unit