firmata: extended data types on pins to allow subplatform usage

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2016-12-08 15:10:36 -08:00
parent 130cb822e4
commit dfc7a710d4
34 changed files with 44 additions and 44 deletions

View File

@ -34,14 +34,14 @@
using namespace upm;
NRF24L01::NRF24L01 (uint8_t cs, uint8_t ce)
NRF24L01::NRF24L01 (int cs, int ce)
:m_spi(0), m_csnPinCtx(cs), m_cePinCtx(ce)
{
init (cs, ce);
}
void
NRF24L01::init (uint8_t chip_select, uint8_t chip_enable) {
NRF24L01::init (int chip_select, int chip_enable) {
mraa::Result error = mraa::SUCCESS;
m_csn = chip_select;

View File

@ -192,7 +192,7 @@ class NRF24L01 {
*
* @param cs Chip select pin
*/
NRF24L01 (uint8_t cs, uint8_t ce);
NRF24L01 (int cs, int ce);
/**
* Returns the name of the component
@ -208,7 +208,7 @@ class NRF24L01 {
* @param chipSelect Sets up the chip select pin
* @param chipEnable Sets up the chip enable pin
*/
void init (uint8_t chipSelect, uint8_t chipEnable);
void init (int chipSelect, int chipEnable);
/**
* Configures the NRF24L01 transceiver