NPI_DEV_SR_LOCK_ST_MASK
state = sr.bits.ldw.sr & NPI_DEV_SR_LOCK_ST_MASK;
#define NPI_GET_LOCK_ST(sr) (sr & NPI_DEV_SR_LOCK_ST_MASK)