Cart Contact NSDSP Home

mcu_can_use_method

This function determines if the specified programming method is suitable for the MCU.

Syntax

int mcu_can_use_method(
        mcu_t             mcu,
        int               method
);

Parameters

mcu - a reference to the MCU object returned by mcu_create or mcu_get_slave_core function.

method - one of the following constants

Value ConstantMethod
0NSDSP_METHOD_DEFAULTThe default programming method for the device
1NSDSP_METHOD_LVPLow voltage ICSP programming (LVP)
2NSDSP_METHOD_HVPHigh voltage ICSP programming (HVP)

Return

The function returns non-zero if the method can be used to program the device, or zero if it cannot.

Different methods may require different physical connections between the target device and NSDSP programmer.

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.