Return to previous page Return to menu Go to next page

8.2.9 Register access

The lower 16 bits are valid for accessing (obtaining, clearing, and setting) the interrupt factor register and interrupt mask register.

  Title  
Function specifications
  Function  
Data transfer register pointer
  Function Name  [-] 
CDC_GetDataPtr
  No 
9.1

 format  Uint32 * CDC_GetDataPtr (void)
 Input  None
 Output  None
 Function value  Register pointer (address value)
 Function  Gets the data transfer register (DATATRNS) pointer. 

(1) Access method . The following three types of data transfer methods are available for data transfer registers and MPEG registers. There is . DMA · DMA transfer by SCU DMA -DMA transfer by CPU Software transfer by CPU : Registers are accessed in longword (32 bits) for DMA transfer and software transfer by the CPU. Must be . In other words, the data to be transferred is in units of long words (even words). . Data The data accessed by longword is stored in order of upper word and lower word. Odd number When transferring data, the lower word of the last longword access is undefined.

(2) Volatile declaration When assigning a pointer to a variable, a volatile declaration is required to prevent unauthorized optimization.

Example volatile Uint32 * ptr; : ptr = CDC_GetDataPtr ();

  Title  
Function specifications
  Function  
Interrupt factor register value
  Function Name  [-] 
CDC_GetHirqReq
  No 
9.2

 format  Sint32 CDC_GetHirqReq (void)
 Input  None
 Output  None
 function value  register value …… For the bit name, refer to the data specification (Constant)
 Function  Gets the value of the interrupt factor register (HIRQREQ). 


Return to previous page Return to menu Go to next page