Spinnaker C
4.3.0.189
 
Macros | Functions | Variables
Logging_C.c File Reference

Macros

#define MAX_BUFF_LEN   256
 

Functions

char * GetLastErrorMessage ()
 
void onLogEvent (const spinLogEventData hEventData, void *pUserData)
 
int main ()
 

Variables

char lastErrorMessage [MAX_BUFF_LEN]
 
size_t lenLastErrorMessage = MAX_BUFF_LEN
 
const spinnakerLogLevel k_loggingLevel = SPINNAKER_LOG_LEVEL_DEBUG
 

Macro Definition Documentation

◆ MAX_BUFF_LEN

#define MAX_BUFF_LEN   256
@example Logging_C.c

@brief Logging_C.c shows how create and use logging events. It relies on
information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C
examples.

It can also be helpful to familiarize yourself with the NodeMapCallback_C
example, as nodemap callbacks follow the same general procedure as
events, but with a few less steps.

Events generally require a class to be defined as an event handler; however,
because C is not an object-oriented language, a pseudo-class is created
using a function and a struct whereby the function acts as the event
handler method and the struct acts as its properties.

Please leave us feedback at: https://www.surveymonkey.com/r/TDYMVAPI More source code examples at: https://github.com/Teledyne-MV/Spinnaker-Examples Need help? Check out our forum at: https://teledynevisionsolutions.zendesk.com/hc/en-us/community/topics

Function Documentation

◆ GetLastErrorMessage()

char* GetLastErrorMessage ( )

◆ main()

int main ( )

◆ onLogEvent()

void onLogEvent ( const spinLogEventData  hEventData,
void *  pUserData 
)

Variable Documentation

◆ k_loggingLevel

const spinnakerLogLevel k_loggingLevel = SPINNAKER_LOG_LEVEL_DEBUG

◆ lastErrorMessage

char lastErrorMessage[MAX_BUFF_LEN]

◆ lenLastErrorMessage

size_t lenLastErrorMessage = MAX_BUFF_LEN