diff options
| author | Jesse Gilles <jgilles@multitech.com> | 2015-04-06 17:17:40 -0500 |
|---|---|---|
| committer | Jesse Gilles <jgilles@multitech.com> | 2015-04-06 17:17:40 -0500 |
| commit | 061f14802f86bdb41fe7dd0161461f8b8fa054cf (patch) | |
| tree | 9327f5550d7927a9bb4f9cc14881635376da1ddc /libloragw/inc/loragw_spi.h | |
| parent | be5c8ac770bc5b142e2c6a47702d9ac653141371 (diff) | |
| download | lora_gateway-061f14802f86bdb41fe7dd0161461f8b8fa054cf.tar.gz lora_gateway-061f14802f86bdb41fe7dd0161461f8b8fa054cf.tar.bz2 lora_gateway-061f14802f86bdb41fe7dd0161461f8b8fa054cf.zip | |
add configurable spidev path, fix CS behavior for MTCDT
Diffstat (limited to 'libloragw/inc/loragw_spi.h')
| -rw-r--r-- | libloragw/inc/loragw_spi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libloragw/inc/loragw_spi.h b/libloragw/inc/loragw_spi.h index ae9ba68..845afdc 100644 --- a/libloragw/inc/loragw_spi.h +++ b/libloragw/inc/loragw_spi.h @@ -38,6 +38,14 @@ Maintainer: Sylvain Miermont /* -------------------------------------------------------------------------- */ /* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */ +/* set SPI device */ +/** +@brief LoRa concentrator SPI path configuration for spidev +@param path pointer to spidev device +@return LGW_SPI_SUCCESS if path is valid, LGW_SPI_ERROR if not +*/ +int lgw_spi_set_path(const char *path); + /** @brief LoRa concentrator SPI setup (configure I/O and peripherals) @param spi_target_ptr pointer on a generic pointer to SPI target (implementation dependant) |
