Functions
CSL_CHIP_FUNCTION

Functions

Uint32 CSL_chipReadReg (CSL_ChipReg reg)
Uint32 CSL_chipWriteReg (CSL_ChipReg reg, CSL_Reg32 val)

Function Documentation

Uint32 CSL_chipReadReg ( CSL_ChipReg  reg)

============================================================================
CSL_chipReadReg

Description
This API reads the specified control register.

Arguments

        reg     Specifies the control register to be read
     

Return Value Uint32

  • The control register value read

Pre Condition
None

Post Condition
None

Reads
AMR; CSR; IFR; IER; ISTP; IRP; NRP; TSCL; TSCH; ARP; ILC; RILC; REP; PCE1; DNUM; SSR; GPLYA; GPLYB; GFPGFR; DIER; TSR; ITSR; NTSR; EFR; IERR

Usage Constraints:
Please refer to the C64x+ user guide for constraints while accessing registers in different privilege levels.

Example

 
        Uint32 amr;
        amr = CSL_chipReadReg (AMR);

    

===========================================================================

Addressing Mode Register

Control Status Register

Interrupt Flag/Set/Clear Registers

Interrupt Enable Register

Interrupt Service Table Pointer Register

Interrupt Return Pointer Register

Nonmaskable Interrupt (NMI) / Exception Return Pointer Registers

Time Stamp Counter Register - Low

Time Stamp Counter Registers - High

Analysis Return Pointer

SPLOOP Inner Loop Count Register

SPLOOP Reload Inner Loop Count Register

Restricted Entry Point Address Register

E1 Phase Program Counter

DSP Core Number Register

Saturation Status Register

GMPY Polynomial.A Side Register

GMPY Polynomial.B Side Register

Galois Field Polynomial Generator Function Register

Task State Register

Interrupt Task State Register

NMI/Exception Task State Register

Exception Flag and Clear Registers

Internal Exception Report Register

Uint32 CSL_chipWriteReg ( CSL_ChipReg  reg,
CSL_Reg32  val 
)

============================================================================
CSL_chipWriteReg

Description
This API writes specified control register with the specified value 'val'. On successful writes, it returns the old value from the register. When the specified control register is a "Read-Only" register, this API just returns a 0.

Arguments

        reg     Specifies the control register to be written to
        val     Value to be written.
     

Return Value Uint32

  • New programmed value or Zero when Register is Read-Only

Pre Condition
None

Post Condition
The reg control register is written with the value passed and the previous contents of the register are returned to the calling application.

Writes
AMR; CSR; ISR; ICR; IER; ISTP; IRP; NRP; TSCL; ARP; ILC; RILC; REP; SSR; GPLYA; GPLYB; GFPGFR; DIER; TSR; ITSR; NTSR; ECR; IERR

Usage Constraints:
Please refer to the C64x+ user guide for constraints while accessing registers in different privilege levels.

Example

 
        Uint32 oldamr;
        oldamr = CSL_chipWriteReg (AMR, 56);

    

===========================================================================

Addressing Mode Register

Control Status Register

Read Interrupt Flag Register and write to the Interrupt Set Register

Read Interrupt Flag Register and write to the Interrupt Clear Register

Interrupt Enable Register

Interrupt Service Table Pointer Register

Interrupt Return Pointer Register

Nonmaskable Interrupt (NMI) / Exception Return Pointer Registers

Time Stamp Counter Register - Low

Time Stamp Counter Registers - High

Analysis Return Pointer

SPLOOP Inner Loop Count Register

SPLOOP Reload Inner Loop Count Register

Restricted Entry Point Address Register

E1 Phase Program Counter

DSP Core Number Register

Saturation Status Register

GMPY Polynomial.A Side Register

GMPY Polynomial.B Side Register

Galois Field Polynomial Generator Function Register

Debug Interrupt Enable Register

Task State Register

Interrupt Task State Register

NMI/Exception Task State Register

Exception Flag and Clear Registers

Internal Exception Report Register


Copyright 2014, Texas Instruments Incorporated