<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_etl_set_mode</id>
	<title>Truxton etl set mode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_etl_set_mode"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_etl_set_mode&amp;action=history"/>
	<updated>2026-09-09T18:45:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_etl_set_mode&amp;diff=3361&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This API tells Truxton what mode your ETL will act under.  =Syntax= &lt;source lang=&quot;C&quot;&gt; void truxton_etl_set_mode( uint64_t etl_handle, uint64_t mode ); &lt;/source&gt;  =Parameters=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_etl_set_mode&amp;diff=3361&amp;oldid=prev"/>
		<updated>2021-01-21T20:49:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This API tells Truxton what mode your ETL will act under.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; void truxton_etl_set_mode( uint64_t etl_handle, uint64_t mode ); &amp;lt;/source&amp;gt;  =Parameters=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This API tells Truxton what mode your ETL will act under.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_etl_set_mode( uint64_t etl_handle, uint64_t mode );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;etl_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by the [[truxton_etl_create]] call.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;mode&amp;lt;/code&amp;gt;==&lt;br /&gt;
This is a bit flag field constructed by [https://en.wikipedia.org/wiki/Bitwise_operation#OR bitwise-or'ing] the ETL application [[ETL Application Modes|mode flags]] together.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;13&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;TruxtonCAPI.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main( void )&lt;br /&gt;
{&lt;br /&gt;
    char file_id[ 65 ];&lt;br /&gt;
&lt;br /&gt;
    uint64_t message = 0;&lt;br /&gt;
    uint64_t app = truxton_etl_create();&lt;br /&gt;
&lt;br /&gt;
    truxton_etl_set_application_name( app, &amp;quot;Sample C ETL&amp;quot; );&lt;br /&gt;
    truxton_etl_set_stage_number( app, 42 );&lt;br /&gt;
    truxton_etl_set_queue_name( app, &amp;quot;SampleC&amp;quot; );&lt;br /&gt;
    truxton_etl_set_mode( app, ETL_APPLICATION_MODE_SEND_PINGS );&lt;br /&gt;
&lt;br /&gt;
    truxton_etl_set_thread_safe( app, 0 );&lt;br /&gt;
&lt;br /&gt;
    // Pause here until we get a message from the &amp;quot;SampleC&amp;quot; message queue&lt;br /&gt;
    message = truxton_etl_get_message( app );&lt;br /&gt;
&lt;br /&gt;
    while( message != 0 )&lt;br /&gt;
    {&lt;br /&gt;
        // Do something with the message&lt;br /&gt;
&lt;br /&gt;
        memset( file_id, 0x00, sizeof( file_id ) );&lt;br /&gt;
        truxton_message_get_file_id( message, file_id, sizeof( file_id ) );&lt;br /&gt;
&lt;br /&gt;
        printf( &amp;quot;Received file id %s\n&amp;quot;, file_id );&lt;br /&gt;
&lt;br /&gt;
        truxton_message_destroy( message );&lt;br /&gt;
&lt;br /&gt;
        // Pause here until we get another message from the &amp;quot;SampleC&amp;quot; message queue&lt;br /&gt;
        message = truxton_etl_get_message( app );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    truxton_etl_destroy( app );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>