Return to SDK Examples for Microchip Studio
31#define HBridgeConnector ConnectorIO4
36void CheckHBridgeOverload();
41 HBridgeConnector.Mode(Connector::OUTPUT_H_BRIDGE);
52 for (int16_t i = 0; i < INT16_MAX; i++) {
54 CheckHBridgeOverload();
57 HBridgeConnector.State(i);
61 for (int16_t i = 0; i < INT16_MAX; i++) {
62 CheckHBridgeOverload();
64 HBridgeConnector.State(INT16_MAX - i);
68 for (int16_t i = 0; i < INT16_MAX; i++) {
69 CheckHBridgeOverload();
71 HBridgeConnector.State(-i);
75 for (int16_t i = 0; i < INT16_MAX; i++) {
76 CheckHBridgeOverload();
78 HBridgeConnector.State(-INT16_MAX + i);
95void CheckHBridgeOverload() {
void Delay_ms(uint32_t ms)
Blocks operations for ms milliseconds.
Definition SysTiming.h:287
void Delay_us(uint32_t usec)
Blocks for operations usec microseconds.
Definition SysTiming.h:296
StatusRegister StatusRT(StatusRegister mask=UINT32_MAX)
The real time status register.
void HBridgeReset()
Starts a reset pulse to the DigitalInOutHBridge connectors.
StatusManager & StatusMgr
Status manager.
struct ClearCore::StatusManager::StatusRegister::@5 bit
uint32_t HBridgeOverloaded
Definition StatusManager.h:71