src/TLx4966/TLx4966.c
/**
 * @brief           Configures the sensor handle attributes
 *                  Mandatory hw interfaces: dir, speed, timer.
 *                  Optional  hw interfaces: power (only for switch mode platform).
 * 
 * @param[in,out]   *handle     Pointer to the sensor instance handle
 * @param[in]       polesPair   Rotor poles pair number     
 * @param[in]       powMode     Power mode   
 * @param[in]       measMode    Measuring mode 
 * @param[in]       speedUnit   Speed unit        
 * @param[in]       *hwIntf     Pointer to hardware interface handle
 * @return          void         
 */
@brief           Configures the sensor handle attributes
Mandatory hw interfaces: dir, speed, timer.
Optional  hw interfaces: power (only for switch mode platform).


@brief Configures the sensor handle attributes Mandatory hw interfaces : dir speed timer . Optional hw interfaces : power ( only for switch mode platform ) .
void TLx4966_Config(TLx4966_Handle_t       *handle, 
                     uint8_t                polesPair,
                     TLx4966_PowerMode_t    powMode,
                     TLx4966_MeasMode_t     measMode,  
                     TLx4966_SpeedUnit_t    speedUnit,    
                     TLx4966_HwIntf_t       *hwIntf)
{
    handle->status    = TLx4966_UNINITED;
    handle->polesPair = polesPair;
    handle->powMode   = powMode;
    handle->measMode  = measMode;
    handle->speedUnit = speedUnit;
    handle->direction = TLx4966_DIR_UNDEF; 
    handle->speed     = 0; 
    handle->hwIntf    = hwIntf;
}
void TLx4966_Config ( TLx4966_Handle_t * handle , uint8_t polesPair , TLx4966_PowerMode_t powMode , TLx4966_MeasMode_t measMode , TLx4966_SpeedUnit_t speedUnit , TLx4966_HwIntf_t * hwIntf ) { handle -> status = TLx4966_UNINITED ; handle -> polesPair = polesPair ; handle -> powMode = powMode ; handle -> measMode = measMode ; handle -> speedUnit = speedUnit ; handle -> direction = TLx4966_DIR_UNDEF ; handle -> speed = 0 ; handle -> hwIntf = hwIntf ; }
@brief           Configures the sensor handle attributes
                  Mandatory hw interfaces: dir, speed, timer.
@brief Configures the sensor handle attributes Mandatory hw interfaces : dir speed timer .