repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
houbin/alarm
userOnline/src/push_msg_queue.h
<gh_stars>0 #ifndef PUSH_MSG_QUEUE_H_ #define PUSH_MSG_QUEUE_H_ #include <string> #include "mutex.h" #include "cond.h" #include "thread.h" #include "list" #include "context.h" #include <map> using namespace std; using namespace util; class WaitFinishPushMsgQueue; extern WaitFinishPushMsgQueue g_wait_finish_push_msg_...
houbin/alarm
userOnline/src/init_configure.h
<reponame>houbin/alarm<filename>userOnline/src/init_configure.h /* * init_log4cxx.h * * Created on: 2012-9-12 * Author: yaowei */ #ifndef INIT_LOG4CXX_H_ #define INIT_LOG4CXX_H_ #include <string> class CInitConfig { public: CInitConfig(); virtual ~CInitConfig(); public: void InitLog4cxx(cons...
houbin/alarm
deviceOnline/src/redis_opt.h
<filename>deviceOnline/src/redis_opt.h /* * CRedisOpt.h * * Created on: 2012-11-5 * Author: yaowei */ #ifndef CREDISOPT_H_ #define CREDISOPT_H_ #include <set> #include <hiredis/hiredis.h> #include "defines.h" class CRedisOpt { public: CRedisOpt(); virtual ~CRedisOpt(); void SetRedisContext(re...
houbin/alarm
util/http_client.h
#ifndef HTTP_CLIENT_H_ #define HTTP_CLIENT_H_ #include <string> #include <list> #include <evhttp.h> #include <event2/event.h> #include <event2/http.h> #include <event2/bufferevent.h> #include "cond.h" #include "mutex.h" #include "thread.h" #include "context.h" #include "defines.h" using namespace std; using namespace...
houbin/alarm
deviceOnline/src/local_transport.h
<filename>deviceOnline/src/local_transport.h /* * local_transport.h * * Created on: Mar 7, 2013 * Author: yaowei */ #ifndef LOCAL_TRANSPORT_H_ #define LOCAL_TRANSPORT_H_ #include <string> #include "defines.h" #include "context.h" #include <boost/thread.hpp> #include "libjson/_internal/Source/JSONNode.h" c...
houbin/alarm
voice_server/util/env.h
#ifndef UTIL_ENV_H_ #define UTIL_ENV_H_ #include <stdint.h> #include "slice.h" namespace util { // copy from leveldb // A file abstraction for sequentail writing. The implementation // must provide buffering since callers may append fragments // at a time to the file class WritableFile { public: WritableFile() ...
houbin/alarm
voice_server/util/thread.h
<filename>voice_server/util/thread.h #ifndef UTIL_THREAD_H_ #define UTIL_THREAD_H_ #include <pthread.h> namespace util { class Thread { private: pthread_t thread_id_; public: Thread(); virtual ~Thread(); bool IsStarted() const; void Create(size_t stack_size = 0); int Join(void **ret = 0); ...
houbin/alarm
deviceOnline/src/push_msg_queue.h
<reponame>houbin/alarm #ifndef PUSH_MSG_QUEUE_ #define PUSH_MSG_QUEUE_ #include <string> #include "mutex.h" #include "cond.h" #include "thread.h" #include "list" #include "context.h" #include <map> #include "libjson/_internal/Source/JSONNode.h" using namespace std; using namespace util; class WaitFinishPushMsgQueue;...
houbin/alarm
public/redis_key.h
#ifndef REDIS_KEY_H #define REDIS_KEY_H #include <string> enum DB_NUMBER { SESSION = 0, STATUS = 2, REDIS_DEVICE_INFO = 6, REDIS_CLIENT_INFO = 7 }; #define REDIS_FIELD_FD "fd" #define REDIS_FIELD_PUBLIC_ADDR "public_addr" #define REDIS_FIELD_PRIVATE_ADDR "private_addr" #define ...
houbin/alarm
voice_server/src/worker.h
<gh_stars>0 #ifndef TCP_SERVER_WORKER_H_ #define TCP_SERVER_WORKER_H_ #include <deque> #include "../util/thread.h" #include "global.h" using namespace util; using namespace std; enum { D_TIMEOUT, D_CLOSE, D_ERROR }; struct ConnectionInfo; class Master; class Dispatcher; class Worker : public Thread { p...
houbin/alarm
userOnline/src/logic_opt.h
/* * message_opt.h * * Created on: Mar 18, 2013 * Author: yaowei */ #ifndef MESSAGE_OPT_H_ #define MESSAGE_OPT_H_ #include "defines.h" #include "redis_opt.h" #include "../../public/message.h" #include "../../public/user_interface_defines.h" using namespace std; class CJsonOpt; class CRedisOpt; class CLog...
houbin/alarm
public/message.h
#ifndef MESSAGE_H #define MESSAGE_H #define TOKEN_LENGTH 5 #define TOKEN_STR "@<PASSWORD>" /* JK(JSON KEY) */ #define PROTO_VERSION "1.0" #define JK_MESSAGE_ID "mid" #define JK_CLIENT_TYPE "ct" #define JK_PROTO_VERSION "pv" #define JK_PARAM ...
DevCodeOne/damnflags
include/config.h
<reponame>DevCodeOne/damnflags<filename>include/config.h<gh_stars>0 #pragma once #include <optional> #include <regex> #include <string> #include <vector> #include <nlohmann/json.hpp> #include "filesys.h" // TODO do proper caching instead of reading the json every time class config { public: static std::optio...
DevCodeOne/damnflags
include/utils.h
#pragma once #include <algorithm> #include <sstream> #include <string> #include <string_view> #include <utility> #include <vector> #include "filesys.h" template<typename T> bool matches_extension(const fs::path &path, T begin, T end) { if (!path.has_extension()) { return false; } return std::fin...
DevCodeOne/damnflags
include/workspace.h
#pragma once // clang-format off #define POSIX_C_SOURCE 200809L #include <unistd.h> #include <sys/inotify.h> #include <sys/select.h> #include <cstdint> // clang-format off #include <bitset> #include <functional> #include <map> #include <optional> #include <set> #include "compilation_database.h" #include "config.h" #...
DevCodeOne/damnflags
include/logger.h
#pragma once #include <memory> #include <mutex> #include <optional> #include "spdlog/spdlog.h" #include "filesys.h" class logger_configuration final { public: logger_configuration() = default; logger_configuration &should_log_to_console(bool value); logger_configuration &log_path(const fs::path &val...
DevCodeOne/damnflags
include/filesys.h
<reponame>DevCodeOne/damnflags<filename>include/filesys.h #pragma once #if __has_include("filesystem") #include <filesystem> namespace fs = std::filesystem; #elif __has_include("experimental/filesystem") #include <experimental/filesystem> namespace fs = std::experimental::filesystem; #endif
DevCodeOne/damnflags
include/compilation_database.h
<gh_stars>0 #pragma once #include <optional> #include <set> #include <spdlog/spdlog.h> #include <nlohmann/json.hpp> #include "config.h" #include "filesys.h" // TODO Merge compilation databases if multiple ones are available class compilation_database final { public: static constexpr inline char database_name...
SLongofono/EECS678_Scheduler
src/queuetest.c
/** @file queuetest.c */ #include <stdio.h> #include <stdlib.h> #include "libpriqueue/libpriqueue.h" int compare1(const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int compare2(const void * a, const void * b) { return ( *(int*)b - *(int*)a ); } int compare3(const void *a, con...
SLongofono/EECS678_Scheduler
src/libscheduler/libscheduler.h
<reponame>SLongofono/EECS678_Scheduler /** @file libscheduler.h */ #ifndef LIBSCHEDULER_H_ #define LIBSCHEDULER_H_ /** Constants which represent the different scheduling algorithms */ typedef enum {FCFS = 0, SJF, PSJF, PRI, PPRI, RR} scheme_t; void scheduler_start_up (int cores, scheme_t...
SLongofono/EECS678_Scheduler
src/libpriqueue/libpriqueue.c
<reponame>SLongofono/EECS678_Scheduler<gh_stars>0 /** @file libpriqueue.c */ #include <stdlib.h> #include <stdio.h> #include "libpriqueue.h" #define DEBUG 0 void print_q(priqueue_t *q){ node_t* temp = q->front; printf("Queue contents: "); while(temp != NULL){ printf("%d ", *(int*)temp->value);...
SLongofono/EECS678_Scheduler
src/libpriqueue/libpriqueue.h
/** @file libpriqueue.h */ #ifndef LIBPRIQUEUE_H_ #define LIBPRIQUEUE_H_ #include <assert.h> /** * Node data structure */ typedef struct node_t{ void *value; struct node_t *next; } node_t; /** * Priority queue data structure */ typedef struct _priqueue_t { node_t *front; node_t * ba...
SLongofono/EECS678_Scheduler
src/simulator.c
/* * CS 241 * The University of Illinois */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include "libscheduler/libscheduler.h" typedef struct _simulator_job_list_t { int job_id, arrival_time, run_time, priority; int core_id, arrived; } si...
SLongofono/EECS678_Scheduler
src/libscheduler/libscheduler.c
/** @file libscheduler.c * * @author <NAME> * * created 03/20/2017 * * modified 03/29/2017 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "libscheduler.h" #include "../libpriqueue/libpriqueue.h" #define DEBUG 0 // Global ready queue priqueue_t *ready_q; // Track busy cores int...
rodhan/STSOData
Template/Framework/NSURL+MobilePlatform.h
<filename>Template/Framework/NSURL+MobilePlatform.h // // NSURL+MobilePlatform.h // Template // // Created by Stadelman, Stan on 11/14/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (MobilePlatform) @property (nonatomic, copy) NSString *appId; /* h...
rodhan/STSOData
Template/Framework/OfflineStore.h
// // OfflineStore.h // TravelAgency_RKT // // Created by <NAME> 8/11/14. // Copyright (c) 2014 SAP. All rights reserved. // #import "SODataOfflineStore.h" #import "SODataStore.h" #import "SODataStoreSync.h" #import "SODataStoreAsync.h" #import "ODataStore.h" @interface OfflineStore : SODataOfflineStore <ODataSto...
rodhan/STSOData
Template/Framework/LogonHandler+Usage.h
// // LogonHandler+Usage.h // TravelAgency_RKT // // Created by <NAME> on 7/22/14. // Copyright (c) 2014 SAP. All rights reserved. // #import "LogonHandler.h" @interface LogonHandler (Usage) -(void)startUsageCollection; @end
rodhan/STSOData
Template/Framework/LogonHandler+E2ETrace.h
<gh_stars>1-10 // // LogonHandler+E2ETrace.h // TravelAgency_RKT // // Created by <NAME> on 7/18/14. // Copyright (c) 2014 SAP. All rights reserved. // #import "LogonHandler.h" #import "SAPE2ETraceManager.h" @class SupportabilityUploader; @interface LogonHandler (E2ETrace) -(SupportabilityUploader *)configuredU...
rodhan/STSOData
Template/Framework/OnlineStore.h
<gh_stars>1-10 // // OnlineStore.h // Template // // Created by Stadelman, Stan on 8/4/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "SODataOnlineStore.h" #import "SODataStore.h" #import "SODataStoreSync.h" #import "SODataStoreAsync.h" #import "ODataStore.h" @interface OnlineStore : SODataOnli...
rodhan/STSOData
Template/FlightDetailsCell.h
<filename>Template/FlightDetailsCell.h // // FlightDetailsCell.h // Template // // Created by Stadelman, Stan on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface FlightDetailsCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *flightNumberLabel; @p...
rodhan/STSOData
Template/TravelDetailsCell.h
<gh_stars>1-10 // // TravelDetailsCell.h // SMP3ODataAPI // // Created by <NAME> 6/5/14. // Copyright (c) 2014 SAP. All rights reserved. // #import <UIKit/UIKit.h> @interface TravelDetailsCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *passengerCount; @property (weak, nonatomic) IBOutlet UILa...
rodhan/STSOData
Template/Framework/NSDate+STSOData.h
// // NSDate+STSOData.h // SMP3ODataAPI // // Created by <NAME> 8/12/14. // Copyright (c) 2014 SAP. All rights reserved. // #import <Foundation/Foundation.h> #import "SODataDuration.h" @interface NSDate (STSOData) -(NSString *)dateToODataStringWithFormat:(NSString *)dateFormat; +(NSDate *)dateFromODataString:(N...
rodhan/STSOData
Template/Framework/SampleModelClasses/FlightSample.h
// // FlightSample.h // Template // // Created by Stadelman, Stan on 9/16/14. // Copyright (c) 2014 <NAME>. All rights reserved. // @class FlightDetailsSample; @interface FlightSample : NSObject @property (nonatomic, strong) NSString *carrid; @property (nonatomic, strong) NSString *connid; @property (nonatomic, ...
rodhan/STSOData
Template/TotalPriceCell.h
// // TotalPriceCell.h // SMP3ODataAPI // // Created by <NAME> 6/5/14. // Copyright (c) 2014 SAP. All rights reserved. // #import <UIKit/UIKit.h> @interface TotalPriceCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *totalPrice; @end
rodhan/STSOData
Template/ReviewItinerary.h
<reponame>rodhan/STSOData<gh_stars>1-10 // // ReviewItinerary.h // Template // // Created by Stadelman, Stan on 9/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class FlightSearchForm; @interface ReviewItinerary : UITableViewController @property (nonatomic, weak) FlightSea...
rodhan/STSOData
Template/Framework/DataController.h
<gh_stars>1-10 // // DataController.h // Template // // Created by Stadelman, Stan on 3/7/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "ODataStore.h" #import "SODataStore.h" #import "SODataStoreSync.h" #import "SODataStoreAsync.h" #import "Framework-Constants....
rodhan/STSOData
Template/Framework/Framework-Constants.h
<filename>Template/Framework/Framework-Constants.h<gh_stars>0 // // Framework-Constants.h // Template // // Created by Stadelman, Stan on 8/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #ifndef Template_Framework_Constants_h #define Template_Framework_Constants_h #define kStoreOpenFinished @"com.sa...
rodhan/STSOData
Template/EditTravelAgency.h
// // EditTravelAgency.h // Template // // Created by Stadelman, Stan on 12/2/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "TravelAgencySample.h" @interface EditTravelAgency : UITableViewController @property (nonatomic, strong) TravelAgencySample *agency; @end
rodhan/STSOData
Template/FlightSearchResultsCell.h
<filename>Template/FlightSearchResultsCell.h // // FlightSearchResultsCell.h // Template // // Created by Stadelman, Stan on 9/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface FlightSearchResultsCell : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *d...
rodhan/STSOData
Template/MilesExplanationCell.h
<filename>Template/MilesExplanationCell.h // // MilesExplanationCell.h // SMP3ODataAPI // // Created by <NAME> 6/6/14. // Copyright (c) 2014 SAP. All rights reserved. // #import <UIKit/UIKit.h> @interface MilesExplanationCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *descriptionLabel; @end
rodhan/STSOData
Template/App-Specific-Constants.h
// // App-Specific-Constants.h // Template // // Created by Stadelman, Stan on 8/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // static NSString * const kTravelAgencyCollection = @"TravelagencyCollection"; static NSString * const kTravelAgencyID = @"agencynum"; static NSString * const kTravelAgencyN...
rodhan/STSOData
Template/SODataOfflineStoreOptions+READAPI.h
<gh_stars>1-10 // // SODataOfflineStoreOptions+READAPI.h // Template // // Created by Stadelman, Stan on 10/27/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "SODataOfflineStoreOptions.h" @interface SODataOfflineStoreOptions (READAPI) @end
rodhan/STSOData
Template/Framework/SampleModelClasses/TravelAgencySample.h
// // TravelAgencySample.h // Template // // Created by Stadelman, Stan on 12/2/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "SODataEntity.h" @interface TravelAgencySample : NSObject @property (nonatomic, strong) NSString *agencynum; @property (nonatomic, st...
rodhan/STSOData
Template/Framework/DataController+CUDRequests.h
<filename>Template/Framework/DataController+CUDRequests.h // // DataController+CUDRequests.h // TravelAgency_RKT // // Created by <NAME> on 8/12/14. // Copyright (c) 2014 SAP. All rights reserved. // #import "DataController.h" #import "SODataEntity.h" @class SODataEntityDefault; @interface DataController (CUDRe...
rodhan/STSOData
Template/Framework/LogonHandler+Logging.h
// // LogonHandler+Logging.h // TravelAgency_RKT // // Created by <NAME> on 8/12/14. // Copyright (c) 2014 SAP. All rights reserved. // #import "LogonHandler.h" #import "SAPClientLogManager.h" @interface LogonHandler (Logging) - (void) setupLogging; - (void) uploadLogs; @end
rodhan/STSOData
Template/HomeScreen.h
// // HomeScreen.h // Template // // Created by Stadelman, Stan on 9/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface HomeScreen : UIViewController @end
rodhan/STSOData
Template/AppDelegate.h
// // AppDelegate.h // Template // // Created by Stadelman, Stan on 8/4/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "NSURL+MobilePlatform.h" @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (nonato...
rodhan/STSOData
Template/Framework/SampleModelClasses/BookingSample.h
<filename>Template/Framework/SampleModelClasses/BookingSample.h<gh_stars>1-10 // // BookingSample.h // Template // // Created by Stadelman, Stan on 9/22/14. // Copyright (c) 2014 <NAME>. All rights reserved. // @class FlightSample; @interface BookingSample : NSObject @property (nonatomic, strong) NSString *carri...
rodhan/STSOData
Template/Framework/LogonHandler.h
<reponame>rodhan/STSOData // // LogonHandler // // // // Copyright (c) 2013 RIG. All rights reserved. // #import <Foundation/Foundation.h> #import "MAFLogonNGPublicAPI.h" #import "MAFLogonUIViewManager.h" #import "MAFLogonNGDelegate.h" #import "HttpConversationManager.h" #import "MAFLogonRegistrationData.h" #impo...
rodhan/STSOData
Template/Framework/ODataStore.h
// // ODataStore.h // Template // // Created by Stadelman, Stan on 8/20/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @protocol ODataStore <NSObject> @required - (void) openStoreWithCompletion:(void(^)(BOOL success))completion; @optional - (void) flushAndRefresh:(vo...
rodhan/STSOData
Template/Framework/SampleModelClasses/FlightDetailsSample.h
<gh_stars>0 // // FlightDetailsSample.h // Template // // Created by Stadelman, Stan on 9/16/14. // Copyright (c) 2014 <NAME>. All rights reserved. // @class SODataDuration; @interface FlightDetailsSample : NSObject @property (nonatomic, strong) NSString *countryFrom; @property (nonatomic, strong) NSString *city...
rodhan/STSOData
Template/TravelAgencyCell.h
<filename>Template/TravelAgencyCell.h // // TravelAgencyCell.h // Template // // Created by Stadelman, Stan on 12/2/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface TravelAgencyCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *agencyName; @property (...
rodhan/STSOData
Template/FlightSearchResults.h
<reponame>rodhan/STSOData<gh_stars>1-10 // // FlightSearchResults.h // Template // // Created by Stadelman, Stan on 9/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class FlightSearchForm; typedef NS_ENUM(NSInteger, FlightDirection) { Departing, Returning }; @inter...
rodhan/STSOData
Template/FlightSearchForm.h
// // FlightSearchForm.h // Template // // Created by Stadelman, Stan on 9/19/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class FlightSample; @interface FlightSearchForm : UITableViewController @property (nonatomic, strong) NSDate *departureDate; @property (nonatomic, stro...
rapinto/LocalNotificationManager
Classes/LocalNotificationManager.h
<reponame>rapinto/LocalNotificationManager // // LocalNotificationManager.h // Pong // // Created by Ades on 11/09/2015. // Copyright (c) 2015 Ades. All rights reserved. // #import <Foundation/Foundation.h> @interface LocalNotificationManager : NSObject + (void)registerLocalNotifications; + (void)schedulLo...
martha9010/arduino-lorawan
src/Arduino_LoRaWAN.h
/* Module: Arduino_LoRaWAN.h Function: The base class for arduino-lmic-based LoRaWAN nodes. Copyright notice: See LICENSE file accompanying this project. Author: <NAME>, MCCI Corporation October 2016 */ #ifndef _ARDUINO_LORAWAN_H_ /* prevent multiple includes */ #define _ARD...
KellyCoder/YKPlaceholderView
YKPlaceholderView/EmptyPlaceholder/EmptyPlaceholderView.h
// // EmptyPlaceholderView.h // ComponentDemo // // Created by Kevin on 2021/5/11. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef void(^EmptyOverlayClicked)(void); @interface EmptyPlaceholderView : UIView /** 按钮点击回调 */ @property (nonatomic,copy) EmptyOverlayClicked emptyOverlayClicked; + (instancet...
KellyCoder/YKPlaceholderView
YKPlaceholderView/EmptyPlaceholder/YKPlaceholderHeader.h
// // YKPlaceholderHeader.h // ComponentDemo // // Created by Kevin on 2021/5/11. // #ifndef YKPlaceholderHeader_h #define YKPlaceholderHeader_h #import "EmptyPlaceholderView.h" #import "UITableView+Placeholder.h" #import "UICollectionView+Placeholder.h" #endif /* YKPlaceholderHeader_h */
KellyCoder/YKPlaceholderView
YKPlaceholderView/EmptyPlaceholder/UITableView+Placeholder.h
// // UITableView+Placeholder.h // ComponentDemo // // Created by Kevin on 2021/5/11. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol YKTableViewPlaceholderDelegate <NSObject> @required /// 无数据占位视图 - (UIView *)yk_makePlaceholderView; @optional /// 占位视图显示时,是否可滚动 - (BOOL)yk_enableScrollWhenPlacehol...
KellyCoder/YKPlaceholderView
YKPlaceholderView/EmptyPlaceholder/UICollectionView+Placeholder.h
<gh_stars>1-10 // // UICollectionView+Placeholder.h // ComponentDemo // // Created by Kevin on 2021/5/11. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol YKCollectionViewPlaceholderDelegate <NSObject> @required /// 无数据占位视图 - (UIView *)yk_makePlaceholderView; @optional /// 占位视图显示时,是否可滚动 - (BOOL)yk...
gaelfoppolo/SwiftPrecision
SwiftPrecisionFramework/SwiftPrecisionFramework.h
// // SwiftPrecisionFramework.h // SwiftPrecisionFramework // // Created by Gaël on 22/09/2018. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SwiftPrecisionFramework. FOUNDATION_EXPORT double SwiftPrecisionFrameworkVersionNumber; //! Project version st...
schneiderlo/ppmlib
ppmlib/types.h
<reponame>schneiderlo/ppmlib #ifndef PPM_TYPES_H #define PPM_TYPES_H namespace ppm { using color_t = unsigned char; struct Color { color_t r; color_t g; color_t b; }; } // namespace ppm #endif // PPM_TYPES_H
schneiderlo/ppmlib
ppmlib/ppm.h
<filename>ppmlib/ppm.h #ifndef PPM_PPM_H #define PPM_PPM_H #include <iostream> #include <vector> #include "ppmlib/color.h" #include "ppmlib/types.h" namespace ppm { class PPM { public: PPM() = default; PPM(const size_t width, const size_t height, const Color& fill_value); // Read an image from a stream. v...
schneiderlo/ppmlib
ppmlib/color.h
#ifndef PPM_COLOR_H #define PPM_COLOR_H #include <iostream> #include "ppmlib/types.h" namespace ppm { // Read a color from a stream. // // The beginning of the stream should be of the form "23 233 55". Where 23 // represents the red channel, 233 the green channel and 55 the blue channel. [[nodiscard]] Color read(s...
dfranx/glsl-parser
util.h
<gh_stars>1-10 #ifndef UTIL_H #define UTIL_H #include <stdarg.h> // va_list #include <vector> namespace glsl { // An implementation of std::find template <typename I, typename T> static inline I find(I first, I last, const T &value) { for (; first != last; ++first) if (*first == value) return ...
pxcland/MV
mv.h
<filename>mv.h /* ----------------------------------------------------------------------------- * MV - A Matrix Vector Mathematics Library * Performs common and useful mathematical operations used in 3D graphics. * C89 Compliant * Compiled with: gcc -std=c89 -pedantic -Wall * www.setsunasoft.com * * * C...
Jchuk99/PyLidar
app/pylidar/PyLidar.h
#pragma once #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> #include <rplidar.h> #ifndef _countof #define _countof(_Array) (int)(sizeof(_Array) / sizeof(_Array[0])) #endif typedef struct LidarScan { double** data; int size; }LidarScan; using namespace sl; class PyLidar { protected...
ddiakopoulos/sculpting-and-simulations-sample
code/deformation.h
<gh_stars>1-10 // Copyright(c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD - style license found in the // LICENSE file in the root directory of this source tree. #pragma once #ifdef __cplusplus #pragma once #define INLINE inline INLINE floa...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/src/usbd_composite .c
#include <string.h> #include "usb_common.h" #include "usbd.h" #include "usbd_cdc.h" #include "usbd_hid.h" #include "usbd_msc.h" #include "usbd_composite.h" static struct usbd_t *handle = NULL; static uint32_t composite_standard_request_to_intf_handler(struct usbd_t *h) { switch(handle->setup.index) { ...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/test/usbd_cdc_test.c
#include "usbd_cdc.h" /* host need device's line_coding config */ uint32_t get_line_coding(struct ucdc_line_coding *line_coding) { line_coding->dwDTERate = 115200; line_coding->bCharFormat = 2; USBD_TRACE("get_line_coding, baud:%d\r\n", line_coding->dwDTERate); return CH_OK; } /* device need to implme...
yandld/lpc_uart_server
mcu_source/Libraries/drivers_lpc/src/ctimer.c
<reponame>yandld/lpc_uart_server /** ****************************************************************************** * @file ctimer.c * @author YANDLD * @version V3.0.0 * @date 2016.5.28 * @brief www.beyondcore.net http://upcmcu.taobao.com *******************************************************...
yandld/lpc_uart_server
mcu_source/Libraries/startup/src/system_SKEAZ1284.c
<filename>mcu_source/Libraries/startup/src/system_SKEAZ1284.c /* ** ################################################################### ** Compilers: ARM Compiler ** Freescale C/C++ for Embedded ARM ** GNU C Compiler ** GNU C Compi...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/bsp/lpc546xx/drv_pin.c
<filename>mcu_source/Libraries/utilities/rtthread/bsp/lpc546xx/drv_pin.c<gh_stars>1-10 #include <rthw.h> #include <rtthread.h> #include "common.h" #include "gpio.h" #include <rtdevice.h> #include <drivers/pin.h> static void _pin_mode(struct rt_device *device, rt_base_t pin, rt_base_t mode) { uint32_t instance; ...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/bsp/lpc546xx/drv_uart.c
/* * File : serial.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/net/canfestival/examples/master402/motor_control.c
<reponame>yandld/lpc_uart_server #include <stdint.h> #include <stdbool.h> #include <stdlib.h> #include <math.h> #include <rtthread.h> #include <rtdevice.h> #ifdef RT_USING_FINSH #include <finsh.h> #endif #include "canfestival.h" #include "timers_driver.h" #include "master402_od.h" #include "master402_canopen.h" #def...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/drivers/include/drivers/rt_sensor.h
<filename>mcu_source/Libraries/utilities/rtthread/components/drivers/include/drivers/rt_sensor.h #ifndef __CH_RT_SENSOR_H__ #define __CH_RT_SENSOR_H__ #include <stdint.h> //#define RT_SENSOR_CTRL_GET_ID (0) //#define RT_SENSOR_CTRL_GET_INFO (1) //#define RT_SENSOR_CTRL_SET_RANGE (2) //#...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/src/usbd_cdc.c
#include <string.h> #include "usb_common.h" #include "usbd.h" #include "usbd_cdc.h" struct ucdc_t { struct usbd_t *h; struct usbd_cdc_callback_t *cb; struct ucdc_line_coding line_coding; }; static struct ucdc_t cdc; uint32_t cdc_standard_request_to_intf_handler(struct usbd_...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/net/canfestival/src/pdo.c
/* This file is part of CanFestival, a library implementing CanOpen Stack. Copyright (C): <NAME> and <NAME> See COPYING file for copyrights details. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free ...
yandld/lpc_uart_server
mcu_source/Project/Internal/lpc54018_uart_server/src/main.c
#include <stdio.h> #include <string.h> #include <rthw.h> #include <stdlib.h> #include "common.h" #include "gpio.h" #include "syscon.h" #include "shell.h" #include "dma.h" #include "uart.h" #include "rtthread.h" #define LOG_TAG "example" #define LOG_LVL LOG_LVL_DBG #include "ulog.h" int rt_h...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/net/canfestival/examples/master402/canopen_callback.h
<reponame>yandld/lpc_uart_server<gh_stars>1-10 #include "data.h" void master402_heartbeatError(CO_Data* d, UNS8 heartbeatID); void master402_initialisation(CO_Data* d); void master402_preOperational(CO_Data* d); void master402_operational(CO_Data* d); void master402_stopped(CO_Data* d); void master402_post_sync(CO_Da...
yandld/lpc_uart_server
mcu_source/Project/Internal/lpc54018_uart_server/src/mesh_cmd.c
#include <rtthread.h> #include "common.h" #include "uart.h" #include "uart_bridge.h" #include "usbd.h" #ifdef FINSH_USING_MSH #include <finsh.h> static int reboot(int argc, char** argv) { NVIC_SystemReset(); return 0; } MSH_CMD_EXPORT(reboot, reboot); static int cpuinfo(int argc, char** argv) { uint32_...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/inc/usbd_cp210x.h
<filename>mcu_source/Libraries/utilities/chusb/inc/usbd_cp210x.h<gh_stars>1-10 #ifndef __USBD_CP210X_SERIAL_H_ #define __USBD_CP210X_SERIAL_H_ #include <stdint.h> #include <usbd.h> #include <usb_common.h> /* Config request codes */ #define CP210X_IFC_ENABLE 0x00 #define CP210X_SET_BAUDDIV 0x01 #define CP210X_GET_BAUD...
yandld/lpc_uart_server
mcu_source/Libraries/startup/inc/HAL_device.h
/**************************************************************************//** * @file HAL_device.h * @brief CMSIS Cortex-M Peripheral Access Layer for MindMotion * microcontroller devices * * This is a convenience header file for defining the part number on the * build command line, in...
yandld/lpc_uart_server
mcu_source/Libraries/startup/inc/LPC84x.h
<filename>mcu_source/Libraries/startup/inc/LPC84x.h // Attention please! // This is the header file for the LPC84x product family only. /**************************************************************************** * $Id:: LPC84x.h 6437 2012-10-31 11:06:06Z dep00694 $ * Project: NXP LPC8xx sof...
yandld/lpc_uart_server
mcu_source/Libraries/startup/inc/MM32F103xCxE_o.h
<gh_stars>1-10 /** ****************************************************************************** * @file MM32F103xCxE_o.h * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File. * This file contains all the peripheral register's definitions, bits * definitions and memory mapping f...
yandld/lpc_uart_server
mcu_source/Project/Internal/lpc54018_uart_server/src/config/rtconfig.h
<filename>mcu_source/Project/Internal/lpc54018_uart_server/src/config/rtconfig.h /* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ #define RT_NAME_MAX 16 #define RT_ALIGN_SIZE 4 #define RT_THREAD_PRIORITY_MAX 64 #define RT_TICK_PER_SECOND 1000...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/bsp/lpc546xx/drv_hwtimer.c
<reponame>yandld/lpc_uart_server /* * File : drv_hwtimer.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2015, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * ...
yandld/lpc_uart_server
mcu_source/Libraries/startup/inc/MKL28Z7.h
<filename>mcu_source/Libraries/startup/inc/MKL28Z7.h /* ** ################################################################### ** Processors: MKL28Z512VDC7 ** MKL28Z512VLH7 ** MKL28Z512VLL7 ** MKL28Z512VMP7 ** ** Compilers: ...
yandld/lpc_uart_server
kernel_driver/lpc54xxx.c
<reponame>yandld/lpc_uart_server<gh_stars>1-10 // SPDX-License-Identifier: GPL-2.0+ /* * LPC USB-10 ports Serial Converters * * Copyright 2018 by NXP International * * Shamelessly based on DIGI driver * * */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/slab.h> #include <linux/tty.h> #include <...
yandld/lpc_uart_server
mcu_source/Libraries/startup/src/system_MKV10Z7.c
/* ** ################################################################### ** Compilers: ARM Compiler ** Freescale C/C++ for Embedded ARM ** GNU C Compiler ** IAR ANSI C/C++ Compiler for ARM ** ** Reference manual: KV10P48M75...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/src/vsc/usbd_digi_serial.c
<filename>mcu_source/Libraries/utilities/chusb/src/vsc/usbd_digi_serial.c #include <string.h> #include "usb_common.h" #include "usbd.h" #include "usbd_digi_serial.h" #include "uart_bridge.h" #include "uart.h" #include "ulog.h" #define DIGI_USBD_VID (0x1FC9) #define DIGI_USBD_PID (0xEA60) #define USBD_DIGI_SE...
yandld/lpc_uart_server
mcu_source/Libraries/startup/src/system_QN908XB.c
/* ** ################################################################### ** Processors: QN908X ** QN908X ** ** Compilers: Keil ARM C/C++ Compiler ** GNU C Compiler ** IAR ANSI C/C++ Compiler for ARM ** ** Referenc...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/net/canfestival/examples/master402/canopen_callback.c
/* This file is part of CanFestival, a library implementing CanOpen Stack. Copyright (C): <NAME> and <NAME> See COPYING file for copyrights details. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/bsp/lpc546xx/drv_usbd_cdc.c
#include <rtthread.h> #include "common.h" #include "usbd.h" #include "usbd_cdc.h" #define CDC_NAME "usbd_cdc" #define CDC_BUF_SIZE (64) struct bsp_drv_cdc_device { struct rt_device rtdev; rt_mutex_t lock; rt_sem_t ...
yandld/lpc_uart_server
mcu_source/Libraries/utilities/chusb/inc/usbd_digi_serial.h
#ifndef __USBD_DIGI_SERIAL_H_ #define __USBD_DIGI_SERIAL_H_ #include <stdint.h> #include <usbd.h> #include <usb_common.h> void usbd_vsc_digi_serial_init(struct usbd_t *h); #endif
yandld/lpc_uart_server
mcu_source/Libraries/utilities/rtthread/components/net/canfestival/examples/master402/master402_canopen.h
#ifndef __AGV_CANOPEN_H__ #define __AGV_CANOPEN_H__ #define CONTROLLER_NODEID 1 #define SERVO_NODEID 2 #define PDO_TRANSMISSION_TYPE 1 extern CO_Data *OD_Data; void canopen_start_thread_entry(void *parameter); #endif
yandld/lpc_uart_server
mcu_source/Libraries/drivers_lpc/inc/spifi.h
/** ****************************************************************************** * @file spifi.h * @author YANDLD * @version V3.0.0 * @date 2016.05.31 * @brief www.beyondcore.net http://upcmcu.taobao.com ****************************************************************************** */ #ifn...
yandld/lpc_uart_server
mcu_source/Libraries/drivers_lpc/inc/dma.h
/** ****************************************************************************** * @file dma.h * @author YANDLD * @version V3.0.0 * @date 2016.05.31 * @brief www.beyondcore.net http://upcmcu.taobao.com ****************************************************************************** */ #ifnde...
yandld/lpc_uart_server
mcu_source/Libraries/drivers_lpc/src/lcdc.c
<filename>mcu_source/Libraries/drivers_lpc/src/lcdc.c /** ****************************************************************************** * @file lcdc.c * @author YANDLD * @version V3.0.0 * @date 2015.6.21 * @brief www.beyondcore.net http://upcmcu.taobao.com ************************************...
yandld/lpc_uart_server
mcu_source/Libraries/drivers_lpc/inc/ctimer.h
<filename>mcu_source/Libraries/drivers_lpc/inc/ctimer.h /** ****************************************************************************** * @file ctimer.h * @author YANDLD * @version V3.0.0 * @date 2016.05.31 * @brief www.beyondcore.net http://upcmcu.taobao.com *******************************...