Documentation ¶
Index ¶
Constants ¶
View Source
const ( BSR_NOACTION bsrrState = 0b00 // No action on the corresponding ODRx bit BSR_ACTION bsrrState = 0b01 // Set/Reset the corresponding ODRx bit )
View Source
const ( MODE_INPUT modeState = 0b00 // Input (reset state) MODE_OUTPUT modeState = 0b01 // General purpose output mode MODE_ALTFUN modeState = 0b10 // Alternate function mode MODE_ANALOG modeState = 0b11 // Analog mode )
View Source
const ( MODER_RESET_A uint32 = 0xA800_0000 MODER_RESET_B uint32 = 0x0280 MODER_RESET uint32 = 0 )
View Source
const ( OSPEED_LOW ospeedrState = 0b00 // Low speed OSPEED_MEDIUM ospeedrState = 0b01 // Medium speed OSPEED_HIGH ospeedrState = 0b10 // High speed OSPEED_VERYHIGH ospeedrState = 0b11 // Very high speed )
View Source
const ( OSPEEDR_RESET_A uint32 = 0x0C00_0000 OSPEEDR_RESET_B uint32 = 0x00C0 OSPEEDR_RESET uint32 = 0 )
View Source
const ( OTYPE_PUSHPULL otyperState = 0b00 // Output push-pull (reset state) OTYPE_OPENDRAIN otyperState = 0b01 // Output open-drain )
View Source
const ( BASE_ADDRESS_PORT_A uint32 = 0x4002_0000 BASE_ADDRESS_PORT_B uint32 = 0x4002_0400 BASE_ADDRESS_PORT_C uint32 = 0x4002_0800 BASE_ADDRESS_PORT_D uint32 = 0x4002_0C00 BASE_ADDRESS_PORT_E uint32 = 0x4002_1000 BASE_ADDRESS_PORT_F uint32 = 0x4002_1400 BASE_ADDRESS_PORT_G uint32 = 0x4002_1800 BASE_ADDRESS_PORT_H uint32 = 0x4002_1C00 BASE_ADDRESS_PORT_I uint32 = 0x4002_2000 BASE_ADDRESS_PORT_J uint32 = 0x4002_2400 BASE_ADDRESS_PORT_K uint32 = 0x4002_2800 )
View Source
const ( PUPD_NOPULLUP pupdrState = 0b00 // No pull-up, pull-down PUPD_PULLUP pupdrState = 0b01 // Pull-up PUPD_PULLDOWN pupdrState = 0b10 // Pull-down PUPD_RESERVED pupdrState = 0b11 // Reserved )
View Source
const ( PUPDR_RESET_A uint32 = 0x6400_0000 PUPDR_RESET_B uint32 = 0x0100 PUPDR_RESET uint32 = 0 )
View Source
const AFR_RESET uint32 = 0
View Source
const BSRR_RESET uint32 = 0
View Source
const IDR_RESET uint32 = 0
View Source
const LCKR_RESET uint32 = 0
View Source
const MODE_PIN_SIZE uint8 = 2
View Source
const ODR_RESET uint32 = 0
View Source
const OSPEED_PIN_SIZE uint8 = 2
View Source
const OTYPER_RESET uint32 = 0
View Source
const PUPDR_PIN_SIZE uint8 = 2
Variables ¶
View Source
var ErrPinNotExists = errors.New("pin does not exists")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.