Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
These intrinsic functions read data from ARM coprocessors via the coprocessor data transfer instructions.
int _MoveFromCoprocessor( unsigned int coproc,
unsigned int opcode1,unsigned int crn,unsigned int crm,unsigned int opcode2
);
int _MoveFromCoprocessor2( unsigned int coproc,
unsigned int opcode1,unsigned int crn,unsigned int crm,unsigned int opcode2
);
Parameters
- coproc
Coprocessor number in the range 0 to 15. - opcode1
Coprocessor-specific opcode in the range 0 to 7. - crn
Coprocessor register number in the range 0 to 15, which specifies the first operand to the instruction. - crm
Coprocessor register number in the range 0 to 15, which specifies an additional source or destination operand*.* - opcode2
Additional coprocessor-specific opcode in the range 0 to 7*.*
Return Values
The value read from the coprocessor.
Remarks
The values of all five parameters to this intrinsic must be constant expressions known at compile time.
_MoveFromCoprocessor uses the MRC instruction; _MoveFromCoprocessor2 uses MRC2. The parameters correspond to bitfields encoded directly into the instruction word. The interpretation of the parameters is coprocessor-dependent. For more information, see the manual for the coprocessor in question.
These intrinsics are not available when generating Thumb instructions, such as when /QRthumb is specified.
Requirements
Header: armintr.h.
See Also
ARM10 Intrinsic Functions | /QRthumb
Send Feedback on this topic to the authors