nsdsp_debug_write_reg
nsdsp_debug_write_float_reg nsdsp_debug_write_double_regnsdsp_debug_write_reg
This function writes an integer to a CPU register.
Syntax
int nsdsp_debug_write_reg(
nsdsp_session_t session,
unsigned int reg,
unsigned int value
);
Parameters
session - a reference to the Debug Session Object obtained with nsdsp_session_program_for_debug or nsdsp_start_debug_session function
reg - one of the constants listed in the nsdspif.h file. These constants are device specific and are named according to the following table:
Target Device | Constant Syntax |
---|---|
PIC12,PIC16 | REG_PIC16_XXXX |
PIC18 | REG_PIC18_XXXX |
PIC24,dsPIC33C,dsPIC33E,dsPIC33F | REG_PIC24_XXXX |
dsPIC33A | REG_PIC33_XXXX |
PIC32 | REG_PIC32_XXXX |
where XXXX is the name of the register.
value - the value to be written to the register
Return
The function returns non-zero if the write command has been succesfully queued, or zero otherwise
Notes
The register must be an integer register.
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.