![]() |
LibDriver PMW3901MB
|
pmw3901mb basic driver modules More...
Data Structures | |
| struct | pmw3901mb_motion_s |
| pmw3901mb motion structure definition More... | |
| struct | pmw3901mb_handle_s |
| pmw3901mb handle structure definition More... | |
| struct | pmw3901mb_info_s |
| pmw3901mb information structure definition More... | |
Typedefs | |
| typedef struct pmw3901mb_motion_s | pmw3901mb_motion_t |
| pmw3901mb motion structure definition | |
| typedef struct pmw3901mb_handle_s | pmw3901mb_handle_t |
| pmw3901mb handle structure definition | |
| typedef struct pmw3901mb_info_s | pmw3901mb_info_t |
| pmw3901mb information structure definition | |
Functions | |
| uint8_t | pmw3901mb_info (pmw3901mb_info_t *info) |
| get chip's information | |
| uint8_t | pmw3901mb_init (pmw3901mb_handle_t *handle) |
| initialize the chip | |
| uint8_t | pmw3901mb_deinit (pmw3901mb_handle_t *handle) |
| close the chip | |
| uint8_t | pmw3901mb_power_up (pmw3901mb_handle_t *handle) |
| power up the chip | |
| uint8_t | pmw3901mb_shutdown (pmw3901mb_handle_t *handle) |
| shutdown the chip | |
| uint8_t | pmw3901mb_reset (pmw3901mb_handle_t *handle) |
| reset the chip | |
| uint8_t | pmw3901mb_set_optimum_performance (pmw3901mb_handle_t *handle) |
| set the optimum performance | |
| uint8_t | pmw3901mb_burst_read (pmw3901mb_handle_t *handle, pmw3901mb_motion_t *motion) |
| burst read data | |
| uint8_t | pmw3901mb_delta_raw_to_delta_cm (pmw3901mb_handle_t *handle, int16_t raw, float height_m, float *cm) |
| convert the delta raw to the delta cm | |
| uint8_t | pmw3901mb_start_frame_capture (pmw3901mb_handle_t *handle) |
| start frame capture | |
| uint8_t | pmw3901mb_stop_frame_capture (pmw3901mb_handle_t *handle) |
| stop frame capture | |
| uint8_t | pmw3901mb_get_frame (pmw3901mb_handle_t *handle, uint8_t frame[35][35]) |
| get the frame | |
| uint8_t | pmw3901mb_get_product_id (pmw3901mb_handle_t *handle, uint8_t *id) |
| get the product id | |
| uint8_t | pmw3901mb_get_inverse_product_id (pmw3901mb_handle_t *handle, uint8_t *id) |
| get the inverse product id | |
| uint8_t | pmw3901mb_get_revision_id (pmw3901mb_handle_t *handle, uint8_t *id) |
| get the revision id | |
| uint8_t | pmw3901mb_get_motion (pmw3901mb_handle_t *handle, uint8_t *motion) |
| get the motion | |
| uint8_t | pmw3901mb_set_motion (pmw3901mb_handle_t *handle, uint8_t motion) |
| set the motion | |
| uint8_t | pmw3901mb_get_delta_x (pmw3901mb_handle_t *handle, int16_t *delta) |
| get the delta x | |
| uint8_t | pmw3901mb_get_delta_y (pmw3901mb_handle_t *handle, int16_t *delta) |
| get the delta y | |
| uint8_t | pmw3901mb_get_motion_burst (pmw3901mb_handle_t *handle, uint8_t *burst, uint8_t len) |
| get the motion burst | |
| uint8_t | pmw3901mb_get_squal (pmw3901mb_handle_t *handle, uint8_t *squal) |
| get the surface quality | |
| uint8_t | pmw3901mb_get_raw_data_sum (pmw3901mb_handle_t *handle, uint8_t *sum) |
| get the average raw data value | |
| uint8_t | pmw3901mb_get_max_raw_data (pmw3901mb_handle_t *handle, uint8_t *max) |
| get the maximum raw data value | |
| uint8_t | pmw3901mb_get_min_raw_data (pmw3901mb_handle_t *handle, uint8_t *min) |
| get the minimum raw data value | |
| uint8_t | pmw3901mb_get_shutter (pmw3901mb_handle_t *handle, uint16_t *shutter) |
| get the shutter | |
| uint8_t | pmw3901mb_get_observation (pmw3901mb_handle_t *handle, uint8_t *observation) |
| get the observation | |
| uint8_t | pmw3901mb_set_observation (pmw3901mb_handle_t *handle, uint8_t observation) |
| set the observation | |
| uint8_t | pmw3901mb_get_raw_data_grab (pmw3901mb_handle_t *handle, uint8_t *grab, uint16_t len) |
| get the raw data grab | |
| uint8_t | pmw3901mb_set_raw_data_grab (pmw3901mb_handle_t *handle, uint8_t *grab, uint16_t len) |
| set the raw data grab | |
| uint8_t | pmw3901mb_get_raw_data_grab_status (pmw3901mb_handle_t *handle, uint8_t *status) |
| get the raw data grab status | |
pmw3901mb basic driver modules
| typedef struct pmw3901mb_handle_s pmw3901mb_handle_t |
pmw3901mb handle structure definition
| typedef struct pmw3901mb_info_s pmw3901mb_info_t |
pmw3901mb information structure definition
| typedef struct pmw3901mb_motion_s pmw3901mb_motion_t |
pmw3901mb motion structure definition
| uint8_t pmw3901mb_burst_read | ( | pmw3901mb_handle_t * | handle, |
| pmw3901mb_motion_t * | motion ) |
burst read data
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *motion | pointer to a motion structure |
Definition at line 398 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_deinit | ( | pmw3901mb_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 257 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_delta_raw_to_delta_cm | ( | pmw3901mb_handle_t * | handle, |
| int16_t | raw, | ||
| float | height_m, | ||
| float * | cm ) |
convert the delta raw to the delta cm
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [in] | raw | delta raw |
| [in] | height_m | height(m) |
| [out] | *cm | pointer to a cm buffer |
Definition at line 2402 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_delta_x | ( | pmw3901mb_handle_t * | handle, |
| int16_t * | delta ) |
get the delta x
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *delta | pointer to a delta buffer |
Definition at line 1903 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_delta_y | ( | pmw3901mb_handle_t * | handle, |
| int16_t * | delta ) |
get the delta y
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *delta | pointer to a delta buffer |
Definition at line 1948 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_frame | ( | pmw3901mb_handle_t * | handle, |
| uint8_t | frame[35][35] ) |
get the frame
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | **frame | pointer to a frame buffer |
Definition at line 668 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_inverse_product_id | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | id ) |
get the inverse product id
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 1691 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_max_raw_data | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | max ) |
get the maximum raw data value
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *max | pointer to a max buffer |
Definition at line 2099 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_min_raw_data | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | min ) |
get the minimum raw data value
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *min | pointer to a min buffer |
Definition at line 2134 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_motion | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | motion ) |
get the motion
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *motion | pointer to a motion buffer |
Definition at line 1833 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_motion_burst | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | burst, | ||
| uint8_t | len ) |
get the motion burst
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *burst | pointer to a burst buffer |
| [in] | len | burst length |
Definition at line 1994 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_observation | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | observation ) |
get the observation
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *observation | pointer to an observation buffer |
Definition at line 2214 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_product_id | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | id ) |
get the product id
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 1656 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_raw_data_grab | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | grab, | ||
| uint16_t | len ) |
get the raw data grab
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *grab | pointer to a grab buffer |
| [in] | len | grab length |
Definition at line 2286 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_raw_data_grab_status | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | status ) |
get the raw data grab status
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 2365 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_raw_data_sum | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | sum ) |
get the average raw data value
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *sum | pointer to a sum buffer |
Definition at line 2064 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_revision_id | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | id ) |
get the revision id
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 1726 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_shutter | ( | pmw3901mb_handle_t * | handle, |
| uint16_t * | shutter ) |
get the shutter
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *shutter | pointer to a shutter buffer |
Definition at line 2169 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_get_squal | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | squal ) |
get the surface quality
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [out] | *squal | pointer to a surface quality buffer |
Definition at line 2029 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_info | ( | pmw3901mb_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a pmw3901mb info structure |
Definition at line 2480 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_init | ( | pmw3901mb_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 133 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_power_up | ( | pmw3901mb_handle_t * | handle | ) |
power up the chip
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 308 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_reset | ( | pmw3901mb_handle_t * | handle | ) |
reset the chip
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 1760 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_set_motion | ( | pmw3901mb_handle_t * | handle, |
| uint8_t | motion ) |
set the motion
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [in] | motion | set motion |
Definition at line 1868 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_set_observation | ( | pmw3901mb_handle_t * | handle, |
| uint8_t | observation ) |
set the observation
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [in] | observation | input observation |
Definition at line 2250 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_set_optimum_performance | ( | pmw3901mb_handle_t * | handle | ) |
set the optimum performance
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 815 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_set_raw_data_grab | ( | pmw3901mb_handle_t * | handle, |
| uint8_t * | grab, | ||
| uint16_t | len ) |
set the raw data grab
| [in] | *handle | pointer to a pmw3901mb handle structure |
| [in] | *grab | pointer to a raw data grab buffer |
| [in] | len | grab length |
Definition at line 2326 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_shutdown | ( | pmw3901mb_handle_t * | handle | ) |
shutdown the chip
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 1796 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_start_frame_capture | ( | pmw3901mb_handle_t * | handle | ) |
start frame capture
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 455 of file driver_pmw3901mb.c.
| uint8_t pmw3901mb_stop_frame_capture | ( | pmw3901mb_handle_t * | handle | ) |
stop frame capture
| [in] | *handle | pointer to a pmw3901mb handle structure |
Definition at line 555 of file driver_pmw3901mb.c.