Microchip® Advanced Software Framework

sha204_physical.h File Reference
#include "sha204_config.h"

Macros

#define SHA204_BUFFER_POS_COUNT   (0)
 buffer index of count byte in command or response More...
 
#define SHA204_BUFFER_POS_DATA   (1)
 buffer index of data in response More...
 
#define SHA204_RSP_SIZE_MAX   ((uint8_t) 35)
 maximum size of response packet More...
 
#define SHA204_RSP_SIZE_MIN   ((uint8_t) 4)
 < configuration values More...
 
#define SHA204_WAKEUP_DELAY   (3)
 delay between Wakeup pulse and communication in ms More...
 

Functions

uint8_t sha204p_idle (void)
 This I2C function puts the SHA204 device into idle state. More...
 
void sha204p_init (void)
 This function initializes peripherals (timer and communication). More...
 
uint8_t sha204p_receive_response (uint8_t size, uint8_t *response)
 This I2C function receives a response from the SHA204 device. More...
 
uint8_t sha204p_reset_io (void)
 This I2C function resets the I/O buffer of the SHA204 device. More...
 
uint8_t sha204p_resync (uint8_t size, uint8_t *response)
 This I2C function resynchronizes communication. More...
 
uint8_t sha204p_send_command (uint8_t count, uint8_t *command)
 This I2C function sends a command to the device. More...
 
void sha204p_set_device_id (uint8_t id)
 This I2C function sets the I2C address. More...
 
uint8_t sha204p_sleep (void)
 This I2C function puts the SHA204 device into low-power state. More...
 
uint8_t sha204p_wakeup (void)
 This I2C function generates a Wake-up pulse and delays. More...
 

#define SHA204_BUFFER_POS_COUNT   (0)

buffer index of count byte in command or response

Referenced by sha204c_check_crc(), sha204c_send_and_receive(), sha204c_wakeup(), and sha204p_receive_response().

#define SHA204_BUFFER_POS_DATA   (1)

buffer index of data in response

#define SHA204_RSP_SIZE_MAX   ((uint8_t) 35)

maximum size of response packet

Referenced by main(), and sha204p_receive_response().

#define SHA204_RSP_SIZE_MIN   ((uint8_t) 4)

< configuration values

minimum number of bytes in response

Referenced by sha204c_send_and_receive(), sha204c_wakeup(), sha204m_check_parameters(), and sha204p_receive_response().

#define SHA204_WAKEUP_DELAY   (3)

delay between Wakeup pulse and communication in ms

Referenced by sha204p_wakeup().