![]() |
MAX32655 Peripheral Driver API
Peripheral Driver API for the MAX32655
|
Modules | |
| OWM_Registers | |
Data Structures | |
| struct | owm_cfg_t |
Macros | |
| #define | READ_ROM_COMMAND 0x33 |
| #define | MATCH_ROM_COMMAND 0x55 |
| #define | SEARCH_ROM_COMMAND 0xF0 |
| #define | SKIP_ROM_COMMAND 0xCC |
| #define | OD_SKIP_ROM_COMMAND 0x3C |
| #define | OD_MATCH_ROM_COMMAND 0x69 |
| #define | RESUME_COMMAND 0xA5 |
Enumerations | |
| enum | owm_ext_pu_t |
Functions | |
| int | OWM_Init (const owm_cfg_t *cfg, const sys_cfg_owm_t *sys_cfg) |
| void | OWM_Shutdown (void) |
| int | OWM_Reset (void) |
| int | OWM_TouchByte (uint8_t data) |
| int | OWM_WriteByte (uint8_t data) |
| int | OWM_ReadByte (void) |
| int | OWM_TouchBit (uint8_t bit) |
| int | OWM_WriteBit (uint8_t bit) |
| int | OWM_ReadBit (void) |
| int | OWM_Write (uint8_t *data, int len) |
| int | OWM_Read (uint8_t *data, int len) |
| int | OWM_ReadROM (uint8_t *ROMCode) |
| int | OWM_MatchROM (uint8_t *ROMCode) |
| int | OWM_ODMatchROM (uint8_t *ROMCode) |
| int | OWM_SkipROM (void) |
| int | OWM_ODSkipROM (void) |
| int | OWM_Resume (void) |
| int | OWM_SearchROM (int newSearch, uint8_t *ROMCode) |
| void | OWM_ClearFlags (uint32_t mask) |
| unsigned | OWM_GetFlags (void) |
| void | OWM_SetExtPullup (int enable) |
| void | OWM_SetOverdrive (int enable) |
| struct owm_cfg_t |
Structure type for 1-Wire Master configuration.
Data Fields | |
| uint8_t | int_pu_en |
| owm_ext_pu_t | ext_pu_mode |
| uint8_t | long_line_mode |
| owm_ext_pu_t ext_pu_mode |
See owm_ext_pu_t.
| uint8_t int_pu_en |
1 = internal pullup on.
| uint8_t long_line_mode |
1 = long line mode enable.
| #define MATCH_ROM_COMMAND 0x55 |
Match ROM Command
| #define OD_MATCH_ROM_COMMAND 0x69 |
Overdrive Match ROM Command
| #define OD_SKIP_ROM_COMMAND 0x3C |
Overdrive Skip ROM Command
| #define READ_ROM_COMMAND 0x33 |
Read ROM Command
| #define RESUME_COMMAND 0xA5 |
Resume Command
| #define SEARCH_ROM_COMMAND 0xF0 |
Search ROM Command
| #define SKIP_ROM_COMMAND 0xCC |
Skip ROM Command
| enum owm_ext_pu_t |
| void OWM_ClearFlags | ( | uint32_t | mask | ) |
Clear interrupt flags.
| mask | Mask of interrupts to clear. |
| unsigned OWM_GetFlags | ( | void | ) |
Get interrupt flags.
| int OWM_Init | ( | const owm_cfg_t * | cfg, |
| const sys_cfg_owm_t * | sys_cfg | ||
| ) |
Initialize and enable OWM module.
| cfg | Pointer to OWM configuration. |
| sys_cfg | System configuration object |
| int OWM_MatchROM | ( | uint8_t * | ROMCode | ) |
Starts 1-Wire communication with Match ROM command.
| ROMCode | Pointer to buffer with ROM code to match |
| int OWM_ODMatchROM | ( | uint8_t * | ROMCode | ) |
Starts 1-Wire communication with Overdrive Match ROM command.
| ROMCode | Pointer to buffer with ROM code to match |
| int OWM_ODSkipROM | ( | void | ) |
Starts 1-Wire communication with Overdrive Skip ROM command.
| int OWM_Read | ( | uint8_t * | data, |
| int | len | ||
| ) |
Read multiple bytes of data. Will block until transaction is complete.
| data | Pointer to buffer for read data. |
| len | Number of bytes to read. |
| int OWM_ReadBit | ( | void | ) |
Read one bit of data. Will block until transaction is complete.
| int OWM_ReadByte | ( | void | ) |
Read one byte of data. Will block until transaction is complete.
| int OWM_ReadROM | ( | uint8_t * | ROMCode | ) |
Starts 1-Wire communication with Read ROM command.
| ROMCode | Pointer to buffer for ROM code read |
| int OWM_Reset | ( | void | ) |
Send 1-Wire reset pulse. Will block until transaction is complete.
| int OWM_Resume | ( | void | ) |
Starts 1-Wire communication with Resume command.
| int OWM_SearchROM | ( | int | newSearch, |
| uint8_t * | ROMCode | ||
| ) |
Starts 1-Wire communication with Search ROM command.
| newSearch | (1) = start new search, (0) = continue search for next ROM |
| ROMCode | Pointer to buffer with ROM code found |
| void OWM_SetExtPullup | ( | int | enable | ) |
Enables/Disables the External pullup.
| enable | (1) = enable, (0) = disable |
| void OWM_SetOverdrive | ( | int | enable | ) |
Enables/Disables Overdrive speed.
| enable | (1) = overdrive, (0) = standard |
| int OWM_SkipROM | ( | void | ) |
Starts 1-Wire communication with Skip ROM command.
| int OWM_TouchBit | ( | uint8_t | bit | ) |
Send and receive one bit of data. Will block until transaction is complete.
| bit | bit to send |
| int OWM_TouchByte | ( | uint8_t | data | ) |
Send and receive one byte of data. Will block until transaction is complete.
| data | data to send |
| int OWM_Write | ( | uint8_t * | data, |
| int | len | ||
| ) |
Write multiple bytes of data. Will block until transaction is complete.
| data | Pointer to buffer for write data. |
| len | Number of bytes to write. |
| int OWM_WriteBit | ( | uint8_t | bit | ) |
Write one bit of data. Will block until transaction is complete.
| bit | bit to send |
| int OWM_WriteByte | ( | uint8_t | data | ) |
Write one byte of data. Will block until transaction is complete.
| data | data to send |