Macros
hw_onewire.h File Reference

Go to the source code of this file.

Macros

#define ONEWIRE_O_CS   0x00000000
 
#define ONEWIRE_O_TIM   0x00000004
 
#define ONEWIRE_O_DATW   0x00000008
 
#define ONEWIRE_O_DATR   0x0000000C
 
#define ONEWIRE_O_IM   0x00000100
 
#define ONEWIRE_O_RIS   0x00000104
 
#define ONEWIRE_O_MIS   0x00000108
 
#define ONEWIRE_O_ICR   0x0000010C
 
#define ONEWIRE_O_DMA   0x00000120
 
#define ONEWIRE_O_PP   0x00000FC0
 
#define ONEWIRE_CS_USEALT   0x80000000
 
#define ONEWIRE_CS_ALTP   0x40000000
 
#define ONEWIRE_CS_BSIZE_M   0x00070000
 
#define ONEWIRE_CS_BSIZE_8   0x00000000
 
#define ONEWIRE_CS_BSIZE_1   0x00010000
 
#define ONEWIRE_CS_BSIZE_2   0x00020000
 
#define ONEWIRE_CS_BSIZE_3   0x00030000
 
#define ONEWIRE_CS_BSIZE_4   0x00040000
 
#define ONEWIRE_CS_BSIZE_5   0x00050000
 
#define ONEWIRE_CS_BSIZE_6   0x00060000
 
#define ONEWIRE_CS_BSIZE_7   0x00070000
 
#define ONEWIRE_CS_STUCK   0x00000400
 
#define ONEWIRE_CS_NOATR   0x00000200
 
#define ONEWIRE_CS_BUSY   0x00000100
 
#define ONEWIRE_CS_SKATR   0x00000080
 
#define ONEWIRE_CS_LSAM   0x00000040
 
#define ONEWIRE_CS_ODRV   0x00000020
 
#define ONEWIRE_CS_SZ_M   0x00000018
 
#define ONEWIRE_CS_OP_M   0x00000006
 
#define ONEWIRE_CS_OP_NONE   0x00000000
 
#define ONEWIRE_CS_OP_RD   0x00000002
 
#define ONEWIRE_CS_OP_WR   0x00000004
 
#define ONEWIRE_CS_OP_WRRD   0x00000006
 
#define ONEWIRE_CS_RST   0x00000001
 
#define ONEWIRE_CS_SZ_S   3
 
#define ONEWIRE_TIM_W1TIM_M   0xF0000000
 
#define ONEWIRE_TIM_W0TIM_M   0x0F800000
 
#define ONEWIRE_TIM_W0REST_M   0x00780000
 
#define ONEWIRE_TIM_W1SAM_M   0x00078000
 
#define ONEWIRE_TIM_ATRSAM_M   0x00007800
 
#define ONEWIRE_TIM_ATRTIM_M   0x000007C0
 
#define ONEWIRE_TIM_RSTTIM_M   0x0000003F
 
#define ONEWIRE_TIM_W1TIM_S   28
 
#define ONEWIRE_TIM_W0TIM_S   23
 
#define ONEWIRE_TIM_W0REST_S   19
 
#define ONEWIRE_TIM_W1SAM_S   15
 
#define ONEWIRE_TIM_ATRSAM_S   11
 
#define ONEWIRE_TIM_ATRTIM_S   6
 
#define ONEWIRE_TIM_RSTTIM_S   0
 
#define ONEWIRE_DATW_B3_M   0xFF000000
 
#define ONEWIRE_DATW_B2_M   0x00FF0000
 
#define ONEWIRE_DATW_B1_M   0x0000FF00
 
#define ONEWIRE_DATW_B0_M   0x000000FF
 
#define ONEWIRE_DATW_B3_S   24
 
#define ONEWIRE_DATW_B2_S   16
 
#define ONEWIRE_DATW_B1_S   8
 
#define ONEWIRE_DATW_B0_S   0
 
#define ONEWIRE_DATR_B3_M   0xFF000000
 
#define ONEWIRE_DATR_B2_M   0x00FF0000
 
#define ONEWIRE_DATR_B1_M   0x0000FF00
 
#define ONEWIRE_DATR_B0_M   0x000000FF
 
#define ONEWIRE_DATR_B3_S   24
 
#define ONEWIRE_DATR_B2_S   16
 
#define ONEWIRE_DATR_B1_S   8
 
#define ONEWIRE_DATR_B0_S   0
 
#define ONEWIRE_IM_DMA   0x00000010
 
#define ONEWIRE_IM_STUCK   0x00000008
 
#define ONEWIRE_IM_NOATR   0x00000004
 
#define ONEWIRE_IM_OPC   0x00000002
 
#define ONEWIRE_IM_RST   0x00000001
 
#define ONEWIRE_RIS_DMA   0x00000010
 
#define ONEWIRE_RIS_STUCK   0x00000008
 
#define ONEWIRE_RIS_NOATR   0x00000004
 
#define ONEWIRE_RIS_OPC   0x00000002
 
#define ONEWIRE_RIS_RST   0x00000001
 
#define ONEWIRE_MIS_DMA   0x00000010
 
#define ONEWIRE_MIS_STUCK   0x00000008
 
#define ONEWIRE_MIS_NOATR   0x00000004
 
#define ONEWIRE_MIS_OPC   0x00000002
 
#define ONEWIRE_MIS_RST   0x00000001
 
#define ONEWIRE_ICR_DMA   0x00000010
 
#define ONEWIRE_ICR_STUCK   0x00000008
 
#define ONEWIRE_ICR_NOATR   0x00000004
 
#define ONEWIRE_ICR_OPC   0x00000002
 
#define ONEWIRE_ICR_RST   0x00000001
 
#define ONEWIRE_DMA_SG   0x00000008
 
#define ONEWIRE_DMA_DMAOP_M   0x00000006
 
#define ONEWIRE_DMA_DMAOP_DIS   0x00000000
 
#define ONEWIRE_DMA_DMAOP_RDSNG   0x00000002
 
#define ONEWIRE_DMA_DMAOP_WRMUL   0x00000004
 
#define ONEWIRE_DMA_DMAOP_RDMUL   0x00000006
 
#define ONEWIRE_DMA_RST   0x00000001
 
#define ONEWIRE_PP_DMAP   0x00000010
 
#define ONEWIRE_PP_CNT_M   0x00000003
 
#define ONEWIRE_PP_CNT_S   0
 

Macro Definition Documentation

§ ONEWIRE_O_CS

#define ONEWIRE_O_CS   0x00000000

§ ONEWIRE_O_TIM

#define ONEWIRE_O_TIM   0x00000004

§ ONEWIRE_O_DATW

#define ONEWIRE_O_DATW   0x00000008

§ ONEWIRE_O_DATR

#define ONEWIRE_O_DATR   0x0000000C

§ ONEWIRE_O_IM

#define ONEWIRE_O_IM   0x00000100

§ ONEWIRE_O_RIS

#define ONEWIRE_O_RIS   0x00000104

Referenced by OneWireIntStatus().

§ ONEWIRE_O_MIS

#define ONEWIRE_O_MIS   0x00000108

Referenced by OneWireIntStatus().

§ ONEWIRE_O_ICR

#define ONEWIRE_O_ICR   0x0000010C

Referenced by OneWireIntClear().

§ ONEWIRE_O_DMA

#define ONEWIRE_O_DMA   0x00000120

§ ONEWIRE_O_PP

#define ONEWIRE_O_PP   0x00000FC0

§ ONEWIRE_CS_USEALT

#define ONEWIRE_CS_USEALT   0x80000000

§ ONEWIRE_CS_ALTP

#define ONEWIRE_CS_ALTP   0x40000000

§ ONEWIRE_CS_BSIZE_M

#define ONEWIRE_CS_BSIZE_M   0x00070000

§ ONEWIRE_CS_BSIZE_8

#define ONEWIRE_CS_BSIZE_8   0x00000000

§ ONEWIRE_CS_BSIZE_1

#define ONEWIRE_CS_BSIZE_1   0x00010000

§ ONEWIRE_CS_BSIZE_2

#define ONEWIRE_CS_BSIZE_2   0x00020000

§ ONEWIRE_CS_BSIZE_3

#define ONEWIRE_CS_BSIZE_3   0x00030000

§ ONEWIRE_CS_BSIZE_4

#define ONEWIRE_CS_BSIZE_4   0x00040000

§ ONEWIRE_CS_BSIZE_5

#define ONEWIRE_CS_BSIZE_5   0x00050000

§ ONEWIRE_CS_BSIZE_6

#define ONEWIRE_CS_BSIZE_6   0x00060000

§ ONEWIRE_CS_BSIZE_7

#define ONEWIRE_CS_BSIZE_7   0x00070000

§ ONEWIRE_CS_STUCK

#define ONEWIRE_CS_STUCK   0x00000400

Referenced by OneWireBusStatus().

§ ONEWIRE_CS_NOATR

#define ONEWIRE_CS_NOATR   0x00000200

Referenced by OneWireBusStatus().

§ ONEWIRE_CS_BUSY

#define ONEWIRE_CS_BUSY   0x00000100

§ ONEWIRE_CS_SKATR

#define ONEWIRE_CS_SKATR   0x00000080

§ ONEWIRE_CS_LSAM

#define ONEWIRE_CS_LSAM   0x00000040

§ ONEWIRE_CS_ODRV

#define ONEWIRE_CS_ODRV   0x00000020

§ ONEWIRE_CS_SZ_M

#define ONEWIRE_CS_SZ_M   0x00000018

§ ONEWIRE_CS_OP_M

#define ONEWIRE_CS_OP_M   0x00000006

§ ONEWIRE_CS_OP_NONE

#define ONEWIRE_CS_OP_NONE   0x00000000

§ ONEWIRE_CS_OP_RD

#define ONEWIRE_CS_OP_RD   0x00000002

Referenced by OneWireTransaction().

§ ONEWIRE_CS_OP_WR

#define ONEWIRE_CS_OP_WR   0x00000004

Referenced by OneWireTransaction().

§ ONEWIRE_CS_OP_WRRD

#define ONEWIRE_CS_OP_WRRD   0x00000006

§ ONEWIRE_CS_RST

#define ONEWIRE_CS_RST   0x00000001

Referenced by OneWireBusReset().

§ ONEWIRE_CS_SZ_S

#define ONEWIRE_CS_SZ_S   3

§ ONEWIRE_TIM_W1TIM_M

#define ONEWIRE_TIM_W1TIM_M   0xF0000000

§ ONEWIRE_TIM_W0TIM_M

#define ONEWIRE_TIM_W0TIM_M   0x0F800000

§ ONEWIRE_TIM_W0REST_M

#define ONEWIRE_TIM_W0REST_M   0x00780000

§ ONEWIRE_TIM_W1SAM_M

#define ONEWIRE_TIM_W1SAM_M   0x00078000

§ ONEWIRE_TIM_ATRSAM_M

#define ONEWIRE_TIM_ATRSAM_M   0x00007800

§ ONEWIRE_TIM_ATRTIM_M

#define ONEWIRE_TIM_ATRTIM_M   0x000007C0

§ ONEWIRE_TIM_RSTTIM_M

#define ONEWIRE_TIM_RSTTIM_M   0x0000003F

§ ONEWIRE_TIM_W1TIM_S

#define ONEWIRE_TIM_W1TIM_S   28

§ ONEWIRE_TIM_W0TIM_S

#define ONEWIRE_TIM_W0TIM_S   23

§ ONEWIRE_TIM_W0REST_S

#define ONEWIRE_TIM_W0REST_S   19

§ ONEWIRE_TIM_W1SAM_S

#define ONEWIRE_TIM_W1SAM_S   15

§ ONEWIRE_TIM_ATRSAM_S

#define ONEWIRE_TIM_ATRSAM_S   11

§ ONEWIRE_TIM_ATRTIM_S

#define ONEWIRE_TIM_ATRTIM_S   6

§ ONEWIRE_TIM_RSTTIM_S

#define ONEWIRE_TIM_RSTTIM_S   0

§ ONEWIRE_DATW_B3_M

#define ONEWIRE_DATW_B3_M   0xFF000000

§ ONEWIRE_DATW_B2_M

#define ONEWIRE_DATW_B2_M   0x00FF0000

§ ONEWIRE_DATW_B1_M

#define ONEWIRE_DATW_B1_M   0x0000FF00

§ ONEWIRE_DATW_B0_M

#define ONEWIRE_DATW_B0_M   0x000000FF

§ ONEWIRE_DATW_B3_S

#define ONEWIRE_DATW_B3_S   24

§ ONEWIRE_DATW_B2_S

#define ONEWIRE_DATW_B2_S   16

§ ONEWIRE_DATW_B1_S

#define ONEWIRE_DATW_B1_S   8

§ ONEWIRE_DATW_B0_S

#define ONEWIRE_DATW_B0_S   0

§ ONEWIRE_DATR_B3_M

#define ONEWIRE_DATR_B3_M   0xFF000000

§ ONEWIRE_DATR_B2_M

#define ONEWIRE_DATR_B2_M   0x00FF0000

§ ONEWIRE_DATR_B1_M

#define ONEWIRE_DATR_B1_M   0x0000FF00

§ ONEWIRE_DATR_B0_M

#define ONEWIRE_DATR_B0_M   0x000000FF

§ ONEWIRE_DATR_B3_S

#define ONEWIRE_DATR_B3_S   24

§ ONEWIRE_DATR_B2_S

#define ONEWIRE_DATR_B2_S   16

§ ONEWIRE_DATR_B1_S

#define ONEWIRE_DATR_B1_S   8

§ ONEWIRE_DATR_B0_S

#define ONEWIRE_DATR_B0_S   0

§ ONEWIRE_IM_DMA

#define ONEWIRE_IM_DMA   0x00000010

§ ONEWIRE_IM_STUCK

#define ONEWIRE_IM_STUCK   0x00000008

§ ONEWIRE_IM_NOATR

#define ONEWIRE_IM_NOATR   0x00000004

§ ONEWIRE_IM_OPC

#define ONEWIRE_IM_OPC   0x00000002

§ ONEWIRE_IM_RST

#define ONEWIRE_IM_RST   0x00000001

§ ONEWIRE_RIS_DMA

#define ONEWIRE_RIS_DMA   0x00000010

§ ONEWIRE_RIS_STUCK

#define ONEWIRE_RIS_STUCK   0x00000008

§ ONEWIRE_RIS_NOATR

#define ONEWIRE_RIS_NOATR   0x00000004

§ ONEWIRE_RIS_OPC

#define ONEWIRE_RIS_OPC   0x00000002

§ ONEWIRE_RIS_RST

#define ONEWIRE_RIS_RST   0x00000001

§ ONEWIRE_MIS_DMA

#define ONEWIRE_MIS_DMA   0x00000010

§ ONEWIRE_MIS_STUCK

#define ONEWIRE_MIS_STUCK   0x00000008

§ ONEWIRE_MIS_NOATR

#define ONEWIRE_MIS_NOATR   0x00000004

§ ONEWIRE_MIS_OPC

#define ONEWIRE_MIS_OPC   0x00000002

§ ONEWIRE_MIS_RST

#define ONEWIRE_MIS_RST   0x00000001

§ ONEWIRE_ICR_DMA

#define ONEWIRE_ICR_DMA   0x00000010

§ ONEWIRE_ICR_STUCK

#define ONEWIRE_ICR_STUCK   0x00000008

§ ONEWIRE_ICR_NOATR

#define ONEWIRE_ICR_NOATR   0x00000004

§ ONEWIRE_ICR_OPC

#define ONEWIRE_ICR_OPC   0x00000002

§ ONEWIRE_ICR_RST

#define ONEWIRE_ICR_RST   0x00000001

§ ONEWIRE_DMA_SG

#define ONEWIRE_DMA_SG   0x00000008

Referenced by OneWireDMAEnable().

§ ONEWIRE_DMA_DMAOP_M

#define ONEWIRE_DMA_DMAOP_M   0x00000006

§ ONEWIRE_DMA_DMAOP_DIS

#define ONEWIRE_DMA_DMAOP_DIS   0x00000000

§ ONEWIRE_DMA_DMAOP_RDSNG

#define ONEWIRE_DMA_DMAOP_RDSNG   0x00000002

Referenced by OneWireDMAEnable().

§ ONEWIRE_DMA_DMAOP_WRMUL

#define ONEWIRE_DMA_DMAOP_WRMUL   0x00000004

§ ONEWIRE_DMA_DMAOP_RDMUL

#define ONEWIRE_DMA_DMAOP_RDMUL   0x00000006

Referenced by OneWireDMAEnable().

§ ONEWIRE_DMA_RST

#define ONEWIRE_DMA_RST   0x00000001

§ ONEWIRE_PP_DMAP

#define ONEWIRE_PP_DMAP   0x00000010

§ ONEWIRE_PP_CNT_M

#define ONEWIRE_PP_CNT_M   0x00000003

§ ONEWIRE_PP_CNT_S

#define ONEWIRE_PP_CNT_S   0
Copyright 2017, Texas Instruments Incorporated