Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: AFE031
Tool/software:
#define HAL_afe031_txPWMEnable() \
{HAL_afe031_reg_s.enable.bits.TX = 1; \
HAL_afe031_reg_s.enable.bits.DAC = 0; \
HAL_afe031_reg_s.enable.bits.PA = 1; \
HAL_afe031_regWrite(HAL_AFE031_ENABLE_REG, HAL_afe031_reg_s.enable.all); \
DELAY_US(2); \
HAL_afe031_reg_s.enable2.bits.PA_OUT = 1; \
HAL_afe031_regWrite(HAL_AFE031_ENABLE2_REG, HAL_afe031_reg_s.enable2.all); }
HAL_afe031_txPWMEnable (void) 라는 함수를 보면
HAL_afe031_reg_t 라는 구조체를 쓰고 있는데
이 역시 그냥 typedef struct 구조체일 뿐이다.
레지스터가 안쓰여있는데, AFE031 레지스터에 Write 한다는 것이 어떻게 가능한지 설명해달라.
Ti사 MCU가 아니면 AFE031을 구동하는게 불가능한가?
If you look at the function called HAL_afe031_txPWMEnable (void),
it uses a structure called HAL_afe031_reg_t,
which is also just a typedef struct structure.
Please explain how it is possible to write to the AFE031 register when the register is not used.
Is it impossible to drive the AFE031 without a Ti MCU?