Nut/OS  5.0.5
API Reference
One-Wire Bit-Banging Driver

Array of delay values for the different command phases. More...

Collaboration diagram for One-Wire Bit-Banging Driver:

Data Structures

struct  _NUTOWIINFO_BB
 OWI runtime controlblock container. More...

Typedefs

typedef struct _NUTOWIINFO_BB NUTOWIINFO_BB

Functions

int NutRegisterOwiBus_BB (NUTOWIBUS *bus, int txrx_port, uint_fast8_t txrx_pin, int pullup_port, uint_fast8_t pullup_pin)
 Register the One-Wire bus.

Variables

const uint16_t owi_timervalues_250ns [OWI_MODE_NONE][OWI_CMD_NONE][OWI_PHASE_NONE]

Detailed Description

Array of delay values for the different command phases.


Typedef Documentation

typedef struct _NUTOWIINFO_BB NUTOWIINFO_BB

Function Documentation

int NutRegisterOwiBus_BB ( NUTOWIBUS bus,
int  txrx_port,
uint_fast8_t  txrx_pin,
int  pullup_port,
uint_fast8_t  pullup_pin 
)

Register the One-Wire bus.

Parameters:
busThe returned NUTOWIBUS.
txrx_portThe port to use for the One_Wire bus.
txrx_pinThe pin to use for the One_Wire bus.
pullup_portIf given, port to control strong pull-up for parasitic powered devices.
pullup_pinThe pin to control strong pull-up for parasitic powered devices.
Returns:
OWI_SUCCESS on success, a negative value otherwise.

References calloc, free(), GPIO_CFG_MULTIDRIVE, GPIO_CFG_OUTPUT, GPIO_CFG_PULLUP, GpioPinConfigSet(), GpioPinSetHigh, _NUTOWIBUS::mode, NULL, OWI_INVALID_HW, OWI_OUT_OF_MEM, OWI_SUCCESS, _NUTOWIBUS::owibus_info, _NUTOWIBUS::OwiReadBlock, _NUTOWIBUS::OwiTouchReset, _NUTOWIBUS::OwiWriteBlock, _NUTOWIINFO_BB::pp_pin, _NUTOWIINFO_BB::pp_port, _NUTOWIINFO_BB::txrx_pin, and _NUTOWIINFO_BB::txrx_port.

Here is the call graph for this function:


Variable Documentation

const uint16_t owi_timervalues_250ns[OWI_MODE_NONE][OWI_CMD_NONE][OWI_PHASE_NONE]