Skip to content

Commit

Permalink
rcpp initial commits
Browse files Browse the repository at this point in the history
  • Loading branch information
mnr committed Oct 10, 2023
1 parent 69d20a9 commit 37e7c9b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

rpi_spi_WriteAndRead <- function(mystuff, morestuff) {
.Call(`_rpigpior_rpi_spi_WriteAndRead`, mystuff, morestuff)
}

34 changes: 34 additions & 0 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#include <Rcpp.h>

using namespace Rcpp;

#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif

// rpi_spi_WriteAndRead
int rpi_spi_WriteAndRead(int mystuff, char morestuff);
RcppExport SEXP _rpigpior_rpi_spi_WriteAndRead(SEXP mystuffSEXP, SEXP morestuffSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< int >::type mystuff(mystuffSEXP);
Rcpp::traits::input_parameter< char >::type morestuff(morestuffSEXP);
rcpp_result_gen = Rcpp::wrap(rpi_spi_WriteAndRead(mystuff, morestuff));
return rcpp_result_gen;
END_RCPP
}

static const R_CallMethodDef CallEntries[] = {
{"_rpigpior_rpi_spi_WriteAndRead", (DL_FUNC) &_rpigpior_rpi_spi_WriteAndRead, 2},
{NULL, NULL, 0}
};

RcppExport void R_init_rpigpior(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
6 changes: 6 additions & 0 deletions src/rpi_spi_WriteAndRead.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <Rcpp.h>
using namespace Rcpp;

// [[Rcpp::export]]

int rpi_spi_WriteAndRead(int mystuff, char morestuff) {}

0 comments on commit 37e7c9b

Please sign in to comment.