Skip to content

Commit

Permalink
trying to get Rcpp to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mnr committed Oct 19, 2023
1 parent ca36325 commit 2a67e34
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 270 deletions.
13 changes: 2 additions & 11 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Title
#'
#' @param mystuff
#' @param morestuff
#'
#' @return
#' @export
#'
#' @examples
rpi_spi_WriteAndRead <- function(mystuff, morestuff) {
.Call(`_rpigpior_rpi_spi_WriteAndRead`, mystuff, morestuff)
rpi_spi_open <- function(*device, config) {
.Call(`_rpigpior_rpi_spi_open`, *device, config)
}

14 changes: 7 additions & 7 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ 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) {
// rpi_spi_open
int rpi_spi_open(char *device, spi_config_t config);
RcppExport SEXP _rpigpior_rpi_spi_open(SEXP *deviceSEXP, SEXP configSEXP) {
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));
Rcpp::traits::input_parameter< char >::type *device(*deviceSEXP);
Rcpp::traits::input_parameter< spi_config_t >::type config(configSEXP);
rcpp_result_gen = Rcpp::wrap(rpi_spi_open(*device, config));
return rcpp_result_gen;
END_RCPP
}

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

Expand Down
6 changes: 0 additions & 6 deletions src/rpi_spi_WriteAndRead.cpp

This file was deleted.

180 changes: 0 additions & 180 deletions src/spi.c

This file was deleted.

66 changes: 0 additions & 66 deletions src/spi.h

This file was deleted.

0 comments on commit 2a67e34

Please sign in to comment.