Firmware SDK
bc_ds2484

Driver for DS2484 Single-Channel 1-Wire Master. More...

Macros

#define BC_DS2484_STATUS_1WB   (1<<0)
 Callback events.
 
#define BC_DS2484_STATUS_PPD   (1<<1)
 
#define BC_DS2484_STATUS_SD   (1<<2)
 
#define BC_DS2484_STATUS_LL   (1<<3)
 
#define BC_DS2484_STATUS_RST   (1<<4)
 
#define BC_DS2484_STATUS_SBR   (1<<5)
 
#define BC_DS2484_STATUS_TSB   (1<<6)
 
#define BC_DS2484_STATUS_DIR   (1<<7)
 

Typedefs

typedef struct bc_ds2484_t bc_ds2484_t
 TMP112 instance.
 

Functions

bool bc_ds2484_init (bc_ds2484_t *self, bc_i2c_channel_t i2c_channel)
 Initialize DS2484. More...
 
void bc_ds2484_enable (bc_ds2484_t *self)
 Enable DS2484. More...
 
void bc_ds2484_disable (bc_ds2484_t *self)
 Disable DS2484. More...
 
bool bc_ds2484_reset (bc_ds2484_t *self)
 Reset the 1-Wire bus and return the presence of any device. More...
 
bool bc_ds2484_busy_wait (bc_ds2484_t *self)
 Wait until not busy. More...
 
bool bc_ds2484_write_byte (bc_ds2484_t *self, const uint8_t byte)
 
bool bc_ds2484_read_byte (bc_ds2484_t *self, uint8_t *byte)
 
bool bc_ds2484_read_bit (bc_ds2484_t *self, uint8_t *bit)
 
bool bc_ds2484_triplet (bc_ds2484_t *self, const uint8_t direction)
 
bool bc_ds2484_is_ready (bc_ds2484_t *self)
 
uint8_t bc_ds2484_status_get (bc_ds2484_t *self)
 
bool bc_ds2484_is_present (bc_ds2484_t *self)
 

Detailed Description

Driver for DS2484 Single-Channel 1-Wire Master.

Function Documentation

◆ bc_ds2484_busy_wait()

bool bc_ds2484_busy_wait ( bc_ds2484_t self)

Wait until not busy.

Parameters
[in]selfInstance

Definition at line 115 of file bc_ds2484.c.

Referenced by bc_ds2484_disable(), and bc_ds2484_reset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bc_ds2484_disable()

void bc_ds2484_disable ( bc_ds2484_t self)

Disable DS2484.

Parameters
[in]selfInstance

Definition at line 83 of file bc_ds2484.c.

Referenced by bc_onewire_ds2484_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bc_ds2484_enable()

void bc_ds2484_enable ( bc_ds2484_t self)

Enable DS2484.

Parameters
[in]selfInstance

Definition at line 58 of file bc_ds2484.c.

Referenced by bc_onewire_ds2484_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bc_ds2484_init()

bool bc_ds2484_init ( bc_ds2484_t self,
bc_i2c_channel_t  i2c_channel 
)

Initialize DS2484.

Parameters
[in]selfInstance
[in]i2c_channelI2C channel

Definition at line 41 of file bc_ds2484.c.

Referenced by bc_onewire_ds2484_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bc_ds2484_reset()

bool bc_ds2484_reset ( bc_ds2484_t self)

Reset the 1-Wire bus and return the presence of any device.

Parameters
[in]selfInstance

Definition at line 92 of file bc_ds2484.c.

Referenced by bc_onewire_ds2484_init().

Here is the call graph for this function:
Here is the caller graph for this function: