BSPACM
20150113
Board Support Package for ARM Cortex-M Microcontrollers
|
Implementation-specific support for onewire bus configurations on boards in the Nordic Semiconductor nRF51 device series. More...
Go to the source code of this file.
Data Structures | |
struct | sBSPACMonewireBus |
Typedefs | |
typedef struct sBSPACMonewireBus | sBSPACMonewireBus |
Functions | |
hBSPACMonewireBus | hBSPACMonewireConfigureBus (sBSPACMonewireBus *bp, int dq_pin, int pwr_pin) |
Implementation-specific support for onewire bus configurations on boards in the Nordic Semiconductor nRF51 device series.
typedef struct sBSPACMonewireBus sBSPACMonewireBus |
nRF51 variant bus configuration for one-wire devices
hBSPACMonewireBus hBSPACMonewireConfigureBus | ( | sBSPACMonewireBus * | bp, |
int | dq_pin, | ||
int | pwr_pin | ||
) |
Configure the given bus structure for one-wire operation.
bp | pointer to device-specific information identifying the 1-wire bus |
dq_pin | GPIO pin connected to device DQ signal. This must be an integer in the range 0..31. |
pwr_pin | GPIO pin used to turn on parasitic power. Assumed to be active high. Pass -1 to indicate that external power is being used. |
NULL
if the parameters were invalid.