81 #define SBC_Write_Bit (0x80U) 88 #define SBC_Read_Mask (0x7FU) 152 uint8_t
SBC_Read_RegField(uint8_t SBC_Reg, uint8_t SBC_FieldMsk, uint8_t SBC_FieldPos);
struct __SBC_ErrorCode SBC_ErrorCode
A structure for simple error readout.
SBC_ErrorCode SBC_Clear_Wake_Status(void)
Clears both Wake Status registers.
Definition: TLE94x1.c:578
SBC_ErrorCode SBC_Mode_Sleep(void)
Clears all wake status registers and enter SBC sleep mode. Depending on configuration also the select...
Definition: TLE94x1.c:365
SBC_ErrorCode SBC_Set_Timer_Period(uint8_t Period)
Sets the Period time of the internal timer.
Definition: TLE94x1.c:467
SBC_ErrorCode SBC_WK_MEAS_Off(void)
Disable Voltage Sensing and enable wake-up functionality. See chapter 9.2.4 in datasheet.
Definition: TLE94x1.c:497
uint16_t SBC_SYS_STAT_Read(void)
Reads System Status Control, both lower and higher bits. See page 138 in datasheet.
Definition: TLE94x1.c:512
SBC_ErrorCode SBC_TIMER_WK_EN_Off(void)
WK wake-up disabled. See chapter 5.2.
Definition: TLE94x1.c:507
SBC_ErrorCode SBC_Mode_Stop(void)
Enters SBC stop mode.
Definition: TLE94x1.c:360
SBC_ErrorCode SBC_SYS_STAT_Write(uint16_t SystemStatus)
Writes System Status Control, both lower and higher bits. See page 138 in datasheet.
Definition: TLE94x1.c:521
A structure for simple error readout.
Definition: TLE94x1.h:104
uint8_t expectedValue
Expected readout of the register.
Definition: TLE94x1.h:107
uint8_t SBC_Read_RegField(uint8_t SBC_Reg, uint8_t SBC_FieldMsk, uint8_t SBC_FieldPos)
This method will proceed a readout of a dedicated bitfield within a register.
Definition: TLE94x1.c:94
SBC_ErrorCode SBC_Init(void)
This method must be called one time at startup of the microcontroller.
Definition: TLE94x1.c:140
SBC_ErrorCode SBC_WD_Trigger(void)
This method will trigger the watchdog.
Definition: TLE94x1.c:81
SBC_ErrorCode SBC_Set_Timer_On(uint8_t OnTime)
Sets the OnTime of the internal timer.
Definition: TLE94x1.c:462
void SBC_Register_Callback(uint32_t ISR_Vector, void(*Callback_Handler)(uint8_t callbackHandler))
This function can register a self-defined function to a specific interrupt-event of the SBC.
Definition: TLE94x1.c:281
SBC_ErrorCode SBC_Set_DutyCycle_PWM(uint8_t PWM_DC)
Sets the duty-cycle of the internal PWM generator.
Definition: TLE94x1.c:457
Declaration file for TLE94x1 SBC family device SPI functions.
Main header declaration file for TLE94x1 SBC family device.
uint16_t SBC_Read_Command(uint8_t SBC_Reg)
This method will proceed a readout of a register.
Definition: TLE94x1.c:88
SBC_ErrorCode SBC_Lock_Configuration(void)
Locks CP_EN, GPIO configuration and 'rwl'-bits.
Definition: TLE94x1.c:535
uint8_t flippedBitsMask
Masks the bits that differ from the expected value. Is 0 if readout is as expected.
Definition: TLE94x1.h:106
SBC_ErrorCode SBC_Write_RegField(uint8_t SBC_Reg, uint8_t SBC_FieldMsk, uint8_t SBC_FieldPos, uint8_t SBC_FieldVal, uint16_t *returnval)
This method can be used for manipulating a single bit-field in a control-register.
Definition: TLE94x1.c:114
SBC_ErrorCode SBC_Unlock_Configuration(void)
Unlocks CP_EN, GPIO configuration and 'rwl'-bits.
Definition: TLE94x1.c:557
SBC_ErrorCode SBC_WK_MEAS_On(void)
Enable Voltage Sensing. No wake-up events are generated. See chapter 9.2.4 in datasheet.
Definition: TLE94x1.c:492
SBC_ErrorCode SBC_FO_Test_Off(void)
FO output deactivated by software for testing. Only working if FO/GPIO is configured as FO.
Definition: TLE94x1.c:477
uint8_t SBC_Register
The register where an error occurred.
Definition: TLE94x1.h:105
void(* SBC_Func_Callback)(uint8_t callbackHandler)
Typedef for interrupt callbacks.
Definition: TLE94x1.h:113
SBC_ErrorCode SBC_CP_Off(void)
Charge-Pump (VCP-Pin) is disabled. See chapter 5.3 in datasheet.
Definition: TLE94x1.c:487
SBC_ErrorCode SBC_ISR(void)
Interrupt Service Routine for handling interrupts.
Definition: TLE94x1.c:306
SBC_ErrorCode SBC_Write_Reg(uint8_t SBC_Reg, uint8_t SBC_Val, uint16_t *returnval)
Writes a whole byte to a register and verifies it.
Definition: TLE94x1.c:100
SBC_ErrorCode SBC_FO_Test_On(void)
FO output activated by software for testing. Only working if FO/GPIO is configured as FO.
Definition: TLE94x1.c:472
SBC_ErrorCode SBC_Mode_Normal(void)
Enters SBC normal mode.
Definition: TLE94x1.c:355
Declaration file for ISR-Vectors and ISR related functions.
SBC_ErrorCode SBC_TIMER_WK_EN_On(void)
WK is enabled as wake source. See chapter 5.2.
Definition: TLE94x1.c:502
SBC_ErrorCode SBC_CP_On(void)
Charge-Pump (VCP-Pin) is enabled. See chapter 5.3 in datasheet.
Definition: TLE94x1.c:482