1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXSetBreakPtCallback</title> 10</head> 11 12<body> 13 14<h1 align="left">GXSetBreakPtCallback</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre>#include <revolution/gx.h> 21 22typedef void (*GXBreakPtCallback)(void); 23 24GXBreakPtCallback GXSetBreakPtCallback( GXBreakPtCallback cb );</pre> 25 </dd> 26</dl> 27 28<h2>Arguments</h2> 29<div align="left"> 30<TABLE border="1" cellpadding="3" cellspacing="0.1"> 31 <tr> 32<TD width="120" bgcolor="#ffffe8"><code><strong><em>cb</em></strong></code></TD> 33<TD width="520">Function to invoke when a break point is encountered. A NULL value will indicate that no callback will be invoked. </TD> 34 </tr> 35</TABLE> 36</div> 37 38<h2>Return Values</h2> 39 40<p>This function returns a pointer to the previously-set callback function.</p> 41<H2>Description</H2> 42<P>This function registers <code><strong><em>cb</em></strong></code> as a function to invoke when a break point is encountered. See <a href="GXEnableBreakPt.html"><code>GXEnableBreakPt</code></a> for an explanation of the FIFO break point feature. The callback will run with interrupts disabled and should terminate as quickly as possible.</P> 43<P>You can disable callbacks by setting a NULL value for <code><strong><em>cb</em></strong></code>.</P> 44 45 46 47 48<h2>See Also</h2> 49<P><A href="GXEnableBreakPt.html"><CODE>GXEnableBreakPt</CODE></A></P> 50<H2>Revision History</H2> 51<P>03/01/2006 Initial version.</P> 52</BODY> 53</HTML>