上一页 | 下一页 |
每种位元件提供一组读写函数。局部元件访问的是CALLC指令所在的功能数据。
UINT16 GC_Read_LB(UINT16 lb_num)
void GC_Write_LB(UINT16 lb_num, UINT16 vl)
UINT16 GC_Read_X(UINT16 x_num)
void GC_Write_X(UINT16 x_num, UINT16 vl)
UINT16 GC_Read_Y(UINT16 y_num)
void GC_Write_Y(UINT16 y_num, UINT16 vl);
UINT16 GC_Read_M(UINT16 m_num)
void GC_Write_M(UINT16 m_num, UINT16 vl)
UINT16 GC_Read_B(UINT16 s_num)
void GC_Write_B(UINT16 s_num, UINT16 vl);
UINT16 GC_Read_L(UINT16 s_num)
void GC_Write_L(UINT16 s_num, UINT16 vl)
字元件是16位宽度数据,当32位和浮点数访问时,用2个字表示。
每种字元件提供三组读写函数,16位操作、32位操作、浮点操作。
局部元件访问的是CALLC指令所在的功能数据。
UINT16 GC_Read_LW16(UINT16 lw_num)
void GC_Write_LW16(UINT16 lw_num, UINT16 vl)
UINT32 GC_Read_LW32(UINT16 lw_num)
void GC_Write_LW32(UINT16 lw_num, UINT32 vl)
float GC_Read_LWF(UINT16 lw_num)
void GC_Write_LWF(UINT16 lw_num, float fv)
UINT16 GC_Read_TV(UINT16 tv_num)
void GC_Write_TV(UINT16 tv_num, UINT16 vl)
UINT16 GC_Read_CV16(UINT16 cv16_num)
void GC_Write_CV16(UINT16 cv16_num, UINT16 vl)
UINT32 GC_Read_CV32(UINT16 cv32_num)
void GC_Write_CV32(UINT16 cv32_num, UINT32 vl)
UINT16 GC_Read_D16(UINT16 d_num)
void GC_Write_D16(UINT16 d_num, UINT16 vl)
UINT32 GC_Read_D32(UINT16 d_num)
void GC_Write_D32(UINT16 d_num, UINT32 vl)
float GC_Read_DF(UINT16 d_num)
void GC_Write_DF(UINT16 d_num, float fv)
保留,功能未实现
UINT16 GC_Read_MR16(UINT16 mr_num)
void GC_Write_MR16(UINT16 mr_num, UINT16 vl)
UINT32 GC_Read_MR32(UINT16 mr_num)
void GC_Write_MR32(UINT16 mr_num, UINT32 vl)
float GC_Read_MRF(UINT16 mr_num)
void GC_Write_MRF(UINT16 mr_num, float fv)
UINT16 GC_Read_SD(UINT16 sd_num)
void GC_Write_SD(UINT16 sd_num, UINT16 vl);
UINT16 GC_Read_RD16(UINT16 r_num)
void GC_Write_RD16(UINT16 r_num, UINT16 vl)
UINT32 GC_Read_RD32(UINT16 d_num)
void GC_Write_RD32(UINT16 d_num, UINT32 vl)
float GC_Read_RDF(UINT16 d_num)
void GC_Write_RDF(UINT16 d_num, float fv)
UINT16 GC_Read_VD16(UINT16 r_num)
void GC_Write_VD16(UINT16 r_num, UINT16 vl)
UINT32 GC_Read_VD32(UINT16 d_num)
void GC_Write_VD32(UINT16 d_num, UINT32 vl)
float GC_Read_VDF(UINT16 d_num)
void GC_Write_VDF(UINT16 d_num, float fv)
UINT16 GC_Read_UG(UINT32 u, UINT32 g)
void GC_Write_UG(UINT32 u, UINT32 g, UINT16 vl)
除了使用函数,也可以类似数组形式访问。
元件地址定义:
char *M
char *SM
char *S
short *D
short *SD
short *R
short *RD
short *VR;
C表达式 | 对应内部地址 | C表达式 | 对应内部地址 | C表达式 | 对应内部地址 | ||
X[0] | X0 | X[10] | X10 | X[20] | X20 | ||
Y[0] | Y0 | Y[10] | Y10 | Y[20] | Y20 | ||
M[0] | M0 | M[1000] | M1000 | M[7679] | M7679 | ||
SM[0] | M8000 | SM[255] | M8255 | SM[511] | M8511 | ||
S[0] | S0 | S[1000] | S1000 | S[4095] | S4095 | ||
B[0] | B0 | B[1000] | B1000 | B[7999] | B7999 | ||
L[0] | L0 | L[1000] | L1000 | L[7999] | L7999 | ||
D[0] | D0 | D[1000] | D1000 | D[7999] | D7999 | ||
SD[0] | D8000 | SD[256] | D8256 | SD[511] | D8511 | ||
R[0] | R0 | R[1000] | R1000 | R[31999] | R31999 | ||
RD[0] | RD0 | RD[1000] | RD1000 | RD[31999] | RD31999 | ||
VD[0] | VD0 | VD[1000] | VD1000 | VD[31999] | VD31999 |
上一页 | 下一页 |