Functions | |
void | SFR_enableInterrupt (uint8_t interruptMask) |
Enables selected SFR interrupt sources. More... | |
void | SFR_disableInterrupt (uint8_t interruptMask) |
Disables selected SFR interrupt sources. More... | |
uint8_t | SFR_getInterruptStatus (uint8_t interruptFlagMask) |
Returns the status of the selected SFR interrupt flags. More... | |
void | SFR_clearInterrupt (uint8_t interruptFlagMask) |
Clears the selected SFR interrupt flags. More... | |
void | SFR_setResetPinPullResistor (uint16_t pullResistorSetup) |
Sets the pull-up/down resistor on the ~RST/NMI pin. More... | |
void | SFR_setNMIEdge (uint16_t edgeDirection) |
Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active. More... | |
void | SFR_setResetNMIPinFunction (uint8_t resetPinFunction) |
Sets the function of the ~RST/NMI pin. More... | |
void SFR_clearInterrupt | ( | uint8_t | interruptFlagMask | ) |
Clears the selected SFR interrupt flags.
This function clears the status of the selected SFR interrupt flags.
interruptFlagMask | is the bit mask of interrupt flags that will be cleared. Mask value is the logical OR of any of the following:
|
void SFR_disableInterrupt | ( | uint8_t | interruptMask | ) |
Disables selected SFR interrupt sources.
This function disables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.
interruptMask | is the bit mask of interrupts that will be disabled. Mask value is the logical OR of any of the following:
|
void SFR_enableInterrupt | ( | uint8_t | interruptMask | ) |
Enables selected SFR interrupt sources.
This function enables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor. Does not clear interrupt flags.
interruptMask | is the bit mask of interrupts that will be enabled. Mask value is the logical OR of any of the following:
|
uint8_t SFR_getInterruptStatus | ( | uint8_t | interruptFlagMask | ) |
Returns the status of the selected SFR interrupt flags.
This function returns the status of the selected SFR interrupt flags in a bit mask format matching that passed into the interruptFlagMask parameter.
interruptFlagMask | is the bit mask of interrupt flags that the status of should be returned. Mask value is the logical OR of any of the following:
|
void SFR_setNMIEdge | ( | uint16_t | edgeDirection | ) |
Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active.
This function sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if the NMI function is active. To activate the NMI function of the ~RST/NMI use the SFR_setResetNMIPinFunction() passing SFR_RESETPINFUNC_NMI into the resetPinFunction parameter.
edgeDirection | is the direction that the signal on the ~RST/NMI pin should go to signal an interrupt, if enabled. Valid values are:
|
void SFR_setResetNMIPinFunction | ( | uint8_t | resetPinFunction | ) |
Sets the function of the ~RST/NMI pin.
This function sets the functionality of the ~RST/NMI pin, whether in reset mode which will assert a reset if a low signal is observed on that pin, or an NMI which will assert an interrupt from an edge of the signal dependent on the setting of the edgeDirection parameter in SFR_setNMIEdge().
resetPinFunction | is the function that the ~RST/NMI pin should take on. Valid values are:
|
void SFR_setResetPinPullResistor | ( | uint16_t | pullResistorSetup | ) |
Sets the pull-up/down resistor on the ~RST/NMI pin.
This function sets the pull-up/down resistors on the ~RST/NMI pin to the settings from the pullResistorSetup parameter.
pullResistorSetup | is the selection of how the pull-up/down resistor on the ~RST/NMI pin should be setup or disabled. Valid values are:
|