remove direct calls to ad9510 and use api instead