"sxops" interface to read & write operands from/to memory

@file

ADAPTER_HEADER_FILE Macro

C

#define ADAPTER_HEADER_FILE

/ Copyright (c) 2018-2020 Silex Insight sa Copyright (c) 2018-2020 Beerten Engineering scs SPDX-License-Identifier: BSD-3-Clause

Write the operand into memory filling 'sz' bytes, 0-pading if needed

(FUNC_SX_PK_OP2MEM_LE)(const Typedef

C

typedef void (FUNC_SX_PK_OP2MEM_LE)(const sx_op op, char mem, int sz);

SX_PK_OP2MEM_LE Macro

C

#define SX_PK_OP2MEM_LE ((FUNC_SX_PK_OP2MEM_LE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2MEM_LE)))

in little endian format

Parameters

op Operand written to memory. Data should have a size smaller or equal to 'sz'

Parameters

mem Memory address to write the operand to

Parameters

sz Size in bytes of the operand

Write the operand into memory filling 'sz' bytes, 0-pading if needed

(FUNC_SX_PK_OP2MEM_BE)(const Typedef

C

typedef void (FUNC_SX_PK_OP2MEM_BE)(const sx_op op, char mem, int sz);

SX_PK_OP2MEM_BE Macro

C

#define SX_PK_OP2MEM_BE ((FUNC_SX_PK_OP2MEM_BE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2MEM_BE)))

in big endian format

Parameters

op Operand written to memory. Data should have a size smaller or equal to 'sz'

Parameters

mem Memory address to write the operand to

Parameters

sz Size in bytes of the operand

Write the operand into memory filling 'sz' bytes, 0-pading if needed

(FUNC_SX_PK_OP2MEM)(const Typedef

C

typedef void (FUNC_SX_PK_OP2MEM)(const sx_op op, char mem, int sz);

SX_PK_OP2MEM Macro

C

#define SX_PK_OP2MEM ((FUNC_SX_PK_OP2MEM)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2MEM)))

Parameters

op Operand written to memory. Data should have a size smaller or equal to 'sz'

Parameters

mem Memory address to write the operand to

Parameters

sz Size in bytes of the operand

Write the operand into memory which has the exact size needed

(FUNC_SX_PK_OP2VMEM_LE)(const Typedef

C

typedef void (FUNC_SX_PK_OP2VMEM_LE)(const sx_op op, char mem);

SX_PK_OP2VMEM_LE Macro

C

#define SX_PK_OP2VMEM_LE ((FUNC_SX_PK_OP2VMEM_LE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2VMEM_LE)))

in little endian format

Parameters

op Operand written to memory

Parameters

mem Memory address to write the operand to

Write the operand into memory which has the exact size needed

(FUNC_SX_PK_OP2VMEM_BE)(const Typedef

C

typedef void (FUNC_SX_PK_OP2VMEM_BE)(const sx_op op, char mem);

SX_PK_OP2VMEM_BE Macro

C

#define SX_PK_OP2VMEM_BE ((FUNC_SX_PK_OP2VMEM_BE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2VMEM_BE)))

in big endian format

Parameters

op Operand written to memory

Parameters

mem Memory address to write the operand to

Write the operand into memory which has the exact size needed

(FUNC_SX_PK_OP2VMEM)(const Typedef

C

typedef void (FUNC_SX_PK_OP2VMEM)(const sx_op op, char mem);

SX_PK_OP2VMEM Macro

C

#define SX_PK_OP2VMEM ((FUNC_SX_PK_OP2VMEM)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_OP2VMEM)))

Parameters

op Operand written to memory. Data should be in big endian

Parameters

mem Memory address to write the operand to

Convert raw little endian bytes format to operand

(FUNC_SX_PK_MEM2OP_LE)(const Typedef

C

typedef void (FUNC_SX_PK_MEM2OP_LE)(const char mem, int sz, sx_op op);

SX_PK_MEM2OP_LE Macro

C

#define SX_PK_MEM2OP_LE ((FUNC_SX_PK_MEM2OP_LE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_MEM2OP_LE)))

Parameters

mem Memory address to read the operand from

Parameters

sz Size in bytes of the memory to read

Parameters

op Operand in which the raw little endian bytes are written. Its size should be bigger or equal to 'sz'

Convert raw big endian bytes format to operand

(FUNC_SX_PK_MEM2OP_BE)(const Typedef

C

typedef void (FUNC_SX_PK_MEM2OP_BE)(const char mem, int sz, sx_op op);

SX_PK_MEM2OP_BE Macro

C

#define SX_PK_MEM2OP_BE ((FUNC_SX_PK_MEM2OP_BE)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_MEM2OP_BE)))

Parameters

mem Memory address to read the operand from

Parameters

sz Size in bytes of the memory to read

Parameters

op Operand in which the raw little endian bytes are written. Its size should be bigger or equal to 'sz'

Convert raw bytes to operand

(FUNC_SX_PK_MEM2OP)(const Typedef

C

typedef void (FUNC_SX_PK_MEM2OP)(const char mem, int sz, sx_op op);

SX_PK_MEM2OP Macro

C

#define SX_PK_MEM2OP ((FUNC_SX_PK_MEM2OP)((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SX_PK_MEM2OP)))

Parameters

mem Memory address to read the operand from

Parameters

sz Size in bytes of the memory to read.

Parameters

op Operand in which the raw little endian bytes are written. Its size should be bigger or equal to 'sz'

Return the size in bytes of the operand.

(FUNC_SX_OP_SIZE)(const Typedef

C

typedef int (FUNC_SX_OP_SIZE)(const sx_op op);

Parameters

op Operand @return Operand size in bytes