DYTSrouce/Tool/matlab/include/coder/target_connection/ConnectionOptions_CInterface.h

36 lines
1.1 KiB
C
Raw Normal View History

2024-11-22 15:19:31 +00:00
/* Copyright 2015 The MathWorks, Inc. */
#ifndef ConnectionOptions_CInterface_h
#define ConnectionOptions_CInterface_h
#include <stdint.h>
#include "coder_target_connection_spec.h"
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C bool ConnectionOptionsCreate(
void** const ppConnectionOptions);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsDestroy(
void* const pConnectionOptions);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsSetTransport(
void* const pConnectionOptions,
int32_t val);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsSetIPPort(
void* const pConnectionOptions,
uint16_t val);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsSetHostName(
void* const pConnectionOptions,
const char* c);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsSetSerialPort(
void* const pConnectionOptions,
const char* c);
CODER_TARGET_CONNECTION_EXPORT_EXTERN_C void ConnectionOptionsSetBaudRate(
void* const pConnectionOptions,
uint32_t b);
#endif