How to use the pAccessMode parameter of adl_busWrite


#1

I use the OPEN AT OS V3.15 ,Q24 PLUS ,and open the SPI bus
s8 adl_busWrite ( u8 Handle,adl_busAccess_t * pAccessMode,u32 DataLen,void * Data );
typedef struct
{
u32 Address;
u32 Opcode;
u8 OpcodeLength;
u8 AddressLength;
u8 AccessSize;
} adl_busAccess_t;
I want to know how to set the parameter of the struct adl_busAccess_t. Thanks for your help!